projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51212ee
)
ALSA: fireworks: Fix wrong value as argument for PTR_ERR()
author
Takashi Sakamoto
<o-takashi@sakamocchi.jp>
Tue, 27 May 2014 15:14:38 +0000
(
00:14
+0900)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 27 May 2014 15:34:52 +0000
(17:34 +0200)
The return value of memdup_user() should be passed to return correct error.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/fireworks/fireworks_hwdep.c
patch
|
blob
|
history
diff --git
a/sound/firewire/fireworks/fireworks_hwdep.c
b/sound/firewire/fireworks/fireworks_hwdep.c
index 6b50a6796d22953b26bbed995da036d075d5d7ec..4f8216fb6b62fe4321658e7cbab2215b76fa3470 100644
(file)
--- a/
sound/firewire/fireworks/fireworks_hwdep.c
+++ b/
sound/firewire/fireworks/fireworks_hwdep.c
@@
-135,7
+135,7
@@
hwdep_write(struct snd_hwdep *hwdep, const char __user *data, long count,
buf = memdup_user(data, count);
if (IS_ERR(buf))
- return PTR_ERR(
data
);
+ return PTR_ERR(
buf
);
/* check seqnum is not for kernel-land */
seqnum = be32_to_cpu(((struct snd_efw_transaction *)buf)->seqnum);