We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33affa7 commit 14d8114Copy full SHA for 14d8114
sound/core/control.c
@@ -1275,12 +1275,12 @@ static int snd_ctl_elem_read(struct snd_card *card,
1275
static int snd_ctl_elem_read_user(struct snd_card *card,
1276
struct snd_ctl_elem_value __user *_control)
1277
{
1278
- struct snd_ctl_elem_value *control;
+ struct snd_ctl_elem_value *control __free(kfree) = NULL;
1279
int result;
1280
1281
control = memdup_user(_control, sizeof(*control));
1282
if (IS_ERR(control))
1283
- return PTR_ERR(control);
+ return PTR_ERR(no_free_ptr(control));
1284
1285
result = snd_ctl_elem_read(card, control);
1286
if (result < 0)
0 commit comments