projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ALSA: hwdep: Move put_user() call out of scoped_guard() in snd_hwdep_control_ioctl()
[linux-2.6-block.git]
/
sound
/
core
/
hwdep.c
diff --git
a/sound/core/hwdep.c
b/sound/core/hwdep.c
index 9d7e5039c89304e8418140dda3e5096edca57697..09200df2932c793104acf91fedf005cf51fac30b 100644
(file)
--- a/
sound/core/hwdep.c
+++ b/
sound/core/hwdep.c
@@
-288,11
+288,10
@@
static int snd_hwdep_control_ioctl(struct snd_card *card,
}
if (device >= SNDRV_MINOR_HWDEPS)
device = -1;
- if (put_user(device, (int __user *)arg))
- return -EFAULT;
- return 0;
}
- break;
+ if (put_user(device, (int __user *)arg))
+ return -EFAULT;
+ return 0;
}
case SNDRV_CTL_IOCTL_HWDEP_INFO:
{