Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03a5d4f9 authored by Rupesh Tatiya's avatar Rupesh Tatiya Committed by Gerrit - the friendly Code Review server
Browse files

btfm: Fix coding error with uninitialized variables



These errors might result in access of uninitialized memory leading to
kernel panic.

Change-Id: I24da5aecd15bd1918e9caf669ed341155a41d6a3
Signed-off-by: default avatarRupesh Tatiya <rtatiya@codeaurora.org>
parent 75fa6665
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -708,6 +708,7 @@ static long bt_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
		} else {
			BT_PWR_ERR("BT chip state is already :%d no change d\n"
				, pwr_state);
			ret = 0;
		}
		break;
	default:
+3 −0
Original line number Diff line number Diff line
@@ -332,6 +332,9 @@ static int btfm_slim_dai_get_channel_map(struct snd_soc_dai *dai,
		*tx_num = 0;
		*rx_num = num;
		break;
	default:
		BTFMSLIM_ERR("Unsupported DAI %d", dai->id);
		return -EINVAL;
	}

	do {