Articles de cet auteur
May 02 2013
drivers: crypto: use devm_ioremap_resource()
Author: Laurent Navet <laurent.navet@gmail.com> Replace calls to deprecated devm_request_and_ioremap by devm_ioremap_resource. Found with coccicheck and this semantic patch: scripts/coccinelle/api/devm_request_and_ioremap.cocci. Signed-off-by: Laurent Navet Signed-off-by: Herbert Xu — drivers/crypto/omap-aes.c | 7 +++—- drivers/crypto/omap-sham.c | 7 +++—- 2 files changed, 6 insertions(+), 8 deletions(-) diff –git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c index ee15b0f..305a2aa 100644 — a/drivers/crypto/omap-aes.c +++ b/drivers/crypto/omap-aes.c @@ -1125,10 …
May 02 2013
staging: imx-drm: use devm_ioremap_resource()
Author: Laurent Navet <laurent.navet@gmail.com> Replace a call to deprecated devm_request_and_ioremap by devm_ioremap_resource. Found with coccicheck and this semantic patch: scripts/coccinelle/api/devm_request_and_ioremap.cocci. Signed-off-by: Laurent Navet Signed-off-by: Greg Kroah-Hartman — drivers/staging/imx-drm/imx-tve.c | 8 +++—– 1 file changed, 3 insertions(+), 5 deletions(-) diff –git a/drivers/staging/imx-drm/imx-tve.c b/drivers/staging/imx-drm/imx-tve.c index ac16344..a6efa8f6 100644 — a/drivers/staging/imx-drm/imx-tve.c +++ b/drivers/staging/imx-drm/imx-tve.c @@ -638,11 +638,9 @@ static …
May 02 2013
staging: dwc2: use devm_ioremap_resource()
Author: Laurent Navet <laurent.navet@gmail.com> Replace a call to deprecated devm_request_and_ioremap by devm_ioremap_resource. Found with coccicheck and this semantic patch: scripts/coccinelle/api/devm_request_and_ioremap.cocci. Signed-off-by: Laurent Navet Reviewed-by: Matthijs Kooijman Acked-by: Paul Zimmerman Signed-off-by: Greg Kroah-Hartman — drivers/staging/dwc2/pci.c | 6 +++— 1 file changed, 3 insertions(+), 3 deletions(-) diff –git a/drivers/staging/dwc2/pci.c b/drivers/staging/dwc2/pci.c index 8d16530..0fcb9a5 100644 — a/drivers/staging/dwc2/pci.c +++ …
Apr 18 2013
drivers/video/mmp/core.c: fix use-after-free bug
Author: Andrei Epure <epure.andrei@gmail.com> Found with coccinelle. Signed-off-by: Andrei Epure Cc: Florian Tobias Schandinat Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds — drivers/video/mmp/core.c | 2 — 1 file changed, 2 deletions(-) diff –git a/drivers/video/mmp/core.c b/drivers/video/mmp/core.c index 9ed8341..84de263 100644 — a/drivers/video/mmp/core.c +++ b/drivers/video/mmp/core.c @@ -252,7 +252,5 @@ void mmp_unregister_path(struct mmp_path *path) kfree(path); mutex_unlock(&disp_lock); – – …
Apr 11 2013
net: ethernet: stmicro: stmmac: use devm_ioremap_resource()
Author: Silviu-Mihai Popescu <silviupopescu1990@gmail.com> Convert use of devm_request_and_ioremap() to the newly introduced devm_ioremap_resource() which provides more consistent error handling. devm_ioremap_resource() provides its own error messages so all explicit error messages can be removed from the failure code paths. This was found with coccinelle. Signed-off-by: Silviu-Mihai Popescu Signed-off-by: David S. Miller — drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 8 +++—– …
Apr 08 2013
KVM: VMX: Add missing braces to avoid redundant error check
Author: Jan Kiszka <jan.kiszka@siemens.com> The code was already properly aligned, now also add the braces to avoid that err is checked even if alloc_apic_access_page didn’t run and change it. Found via Coccinelle by Fengguang Wu. Signed-off-by: Jan Kiszka Signed-off-by: Gleb Natapov — arch/x86/kvm/vmx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff …
Apr 02 2013
drivers/video/wm8505fb.c: use devm_ functions
Author: Julia Lawall <Julia.Lawall@lip6.fr> The various devm_ functions allocate memory that is released when a driver detaches. This patch uses these functions for data that is allocated in the probe function of a platform device and is only freed in the remove function. The patch makes some other cleanups. First, the original code used devm_kzalloc, …
Mar 27 2013
charger-manager: Use kmemdup instead of kzalloc + memcpy
Author: Andrei Epure <epure.andrei@gmail.com> Patch found using coccinelle. Signed-off-by: Andrei Epure Signed-off-by: Anton Vorontsov — drivers/power/charger-manager.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/drivers/power/charger-manager.c b/drivers/power/charger-manager.c index 8acc3f8..fefc39f 100644 — a/drivers/power/charger-manager.c +++ b/drivers/power/charger-manager.c @@ -1485,13 +1485,12 @@ static int charger_manager_probe(struct platform_device *pdev) /* Basic Values. Unspecified are Null or …
Mar 25 2013
ASoC: core: Use PTR_RET function
Author: Alexandru Gheorghiu <gheorghiuandru@gmail.com> Used PTR_RET function instead of IS_ERR and PTR_ERR. Patch found using coccinelle. Signed-off-by: Alexandru Gheorghiu Signed-off-by: Mark Brown — sound/soc/soc-io.c | 5 +—- 1 file changed, 1 insertion(+), 4 deletions(-) diff –git a/sound/soc/soc-io.c b/sound/soc/soc-io.c index 29183ef..8ca9ecc 100644 — a/sound/soc/soc-io.c +++ b/sound/soc/soc-io.c @@ -158,10 +158,7 @@ int snd_soc_codec_set_cache_io(struct snd_soc_codec *codec, return …
Mar 25 2013
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 …