Tag: 0d9ffc979f761c091a23020692b3502fa776eac0

sound: oss: uart401: Used kmemdup instead of kmalloc and memcpy

Author: Alexandru Gheorghiu <gheorghiuandru@gmail.com> Used kmemdup instead of replicating it’s behaviour with kmalloc followed by memcpy. Patch found using coccinelle. Signed-off-by: Alexandru Gheorghiu Signed-off-by: Takashi Iwai — sound/oss/uart401.c | 11 +++++++—- 1 file changed, 7 insertions(+), 4 deletions(-)   diff –git a/sound/oss/uart401.c b/sound/oss/uart401.c index 8e514a6..5433c6f 100644 — a/sound/oss/uart401.c +++ b/sound/oss/uart401.c @@ -352,23 +352,26 @@ int …

Lire la suite