Tag: b8e63df919d75ef4ecafd66b5123a798b18cc0e7

sound: oss: sb_common: 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/sb_common.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-)   diff –git a/sound/oss/sb_common.c b/sound/oss/sb_common.c index 7d42c54..851a1da 100644 — a/sound/oss/sb_common.c +++ b/sound/oss/sb_common.c @@ -626,13 +626,12 @@ int …

Continue reading