X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fbrcm2708%2Fpatches-4.19%2F950-0421-staging-bcm2835-audio-don-t-initialize-memory-twice.patch;fp=target%2Flinux%2Fbrcm2708%2Fpatches-4.19%2F950-0421-staging-bcm2835-audio-don-t-initialize-memory-twice.patch;h=f5c7781c2052b64a8afc5c503eb6bd1bc68cd651;hb=67dcc43f3a22dc3a7ac07a7065971b426feeb043;hp=0000000000000000000000000000000000000000;hpb=47a93a810f78adce5a130d287f82b28e9b54313c;p=openwrt%2Fopenwrt.git diff --git a/target/linux/brcm2708/patches-4.19/950-0421-staging-bcm2835-audio-don-t-initialize-memory-twice.patch b/target/linux/brcm2708/patches-4.19/950-0421-staging-bcm2835-audio-don-t-initialize-memory-twice.patch new file mode 100644 index 0000000000..f5c7781c20 --- /dev/null +++ b/target/linux/brcm2708/patches-4.19/950-0421-staging-bcm2835-audio-don-t-initialize-memory-twice.patch @@ -0,0 +1,30 @@ +From 7250c9d3d3f1b861d8f0c6220a81a465e45d70eb Mon Sep 17 00:00:00 2001 +From: Nicolas Saenz Julienne +Date: Wed, 17 Oct 2018 21:01:51 +0200 +Subject: [PATCH] staging: bcm2835-audio: don't initialize memory twice + +commit 2e5f59fb77397cab3bc3d156e8be4164a67d32ef upstream. + +The memory is being allocated with devres_alloc(), wich ultimately uses +__GFP_ZERO to call kmalloc. We don't need to zero the memory area again +in bcm2835-audio. + +Signed-off-by: Nicolas Saenz Julienne +Reviewed-by: Takashi Iwai +Acked-by: Stefan Wahren +Signed-off-by: Greg Kroah-Hartman +--- + drivers/staging/vc04_services/bcm2835-audio/bcm2835.c | 2 -- + 1 file changed, 2 deletions(-) + +--- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c ++++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835.c +@@ -39,8 +39,6 @@ static int bcm2835_devm_add_vchi_ctx(str + if (!vchi_ctx) + return -ENOMEM; + +- memset(vchi_ctx, 0, sizeof(*vchi_ctx)); +- + ret = bcm2835_new_vchi_ctx(dev, vchi_ctx); + if (ret) { + devres_free(vchi_ctx);