Quentin LAMBERT

Articles de cet auteur

Btrfs: add the missing mutex unlock in write_all_supers()

Author: Stefan Behrens <sbehrens@giantdisaster.de> The BUG() was replaced by btrfs_error() and return -EIO with the patch « get rid of one BUG() in write_all_supers() », but the missing mutex_unlock() was overlooked. The 0-DAY kernel build service from Intel reported the missing unlock which was found by the coccinelle tool: fs/btrfs/disk-io.c:3422:2-8: preceding lock on line 3374 Signed-off-by: Stefan …

Lire la suite

[media] dm1105: remove unneeded not-null test

Author: Alexandru Juncu <alexj@rosedu.org> i2c_adap is a field of a struct and will always be allocated so its address will never be null. Suggested by coccinelle, manually verified. Signed-off-by: Alexandru Juncu Signed-off-by: Mauro Carvalho Chehab — drivers/media/pci/dm1105/dm1105.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-)   diff –git a/drivers/media/pci/dm1105/dm1105.c b/drivers/media/pci/dm1105/dm1105.c index e985e3b..e60ac35 100644 …

Lire la suite

drivers:net: delete premature free_irq

Author: Julia Lawall <Julia.Lawall@lip6.fr> Free_irq is not needed if there has been no request_irq. Free_irq is removed from both the probe and remove functions. The correct request_irq and free_irq are found in the open and close functions. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression …

Lire la suite

spi: designware: delete premature free_irq

Author: Julia Lawall <Julia.Lawall@lip6.fr> Free_irq is not needed if there has been no request_irq. Free_irq is removed from both the probe and remove functions. The correct request_irq and free_irq appear to be in the add_host and remove_host functions in spi-dw.c. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) …

Lire la suite

[SCSI] esas2r: coccinelle – Replace memcpy with struct assignment

Author: Bradley Grove <bgrove@attotech.com> Reported-by: Fengguang Wu Signed-off-by: Bradley Grove Signed-off-by: James Bottomley — drivers/scsi/esas2r/esas2r_flash.c | 4 ++– 1 file changed, 2 insertions(+), 2 deletions(-)   diff –git a/drivers/scsi/esas2r/esas2r_flash.c b/drivers/scsi/esas2r/esas2r_flash.c index 45e353f..2ec3c23 100644 — a/drivers/scsi/esas2r/esas2r_flash.c +++ b/drivers/scsi/esas2r/esas2r_flash.c @@ -1360,7 +1360,7 @@ void esas2r_nvram_set_defaults(struct esas2r_adapter *a) u32 time = jiffies_to_msecs(jiffies);   esas2r_lock_clear_flags(&a->flags, AF_NVR_VALID); – memcpy(n, &default_sas_nvram, …

Lire la suite

PCI: tegra: replace devm_request_and_ioremap by devm_ioremap_resource

Author: Julia Lawall <Julia.Lawall@lip6.fr> Use devm_ioremap_resource instead of devm_request_and_ioremap. This was done using the semantic patch scripts/coccinelle/api/devm_ioremap_resource.cocci Error-handling code was manually removed from the associated calls to platform_get_resource. Adjust the comment at the third platform_get_resource_byname to make clear why ioremap is not done at this point. Signed-off-by: Julia Lawall Acked-by: Thierry Reding Tested-by: Thierry Reding …

Lire la suite

spi: simplify devm_request_mem_region/devm_ioremap

Author: Julia Lawall <Julia.Lawall@lip6.fr> Convert the composition of devm_request_mem_region and devm_ioremap to a single call to devm_ioremap_resource. The associated call to platform_get_resource is also simplified and moved next to the new call to devm_ioremap_resource. This was done using a combination of the semantic patches devm_ioremap_resource.cocci and devm_request_and_ioremap.cocci, found in the scripts/coccinelle/api directory. This patch also …

Lire la suite

brcmsmac: use ARRAY_SIZE in phytbl_lcn.c

Author: Arend van Spriel <arend@broadcom.com> This patch converts all sizeof(x)/sizeof(x[0]) instances to ARRAY_SIZE macro in phytbl_lcn.c. The patch was made using spatch with ARRAY_SIZE.cocci (see [1]). [1] https://github.com/coccinelle/coccinelle/tree/master/demos/janitorings Cc: Jonas Gorski Tested-by: David Herrmann Reviewed-by: Hante Meuleman Reviewed-by: Pieter-Paul Giesberts Signed-off-by: Arend van Spriel Signed-off-by: John W. Linville — …/wireless/brcm80211/brcmsmac/phy/phytbl_lcn.c | 117 ++++++++————- 1 file …

Lire la suite

usb: musb: dsps: fix devm_ioremap_resource error detection code

Author: Julia Lawall <Julia.Lawall@lip6.fr> devm_ioremap_resource returns an ERR_PTR value, not NULL, on failure. Furthermore, the value returned by devm_ioremap_resource should be tested. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression e,e1; statement S; @@ *e = devm_ioremap_resource(…); if (!e1) S // Signed-off-by: Julia Lawall Signed-off-by: …

Lire la suite

video: xilinxfb: replace devm_request_and_ioremap by devm_ioremap_resource

Author: Julia Lawall <Julia.Lawall@lip6.fr> Use devm_ioremap_resource instead of devm_request_and_ioremap. This was done using the semantic patch scripts/coccinelle/api/devm_ioremap_resource.cocci The initialization of drvdata->regs_phys was manually moved lower, to take advantage of the NULL test on res performed by devm_ioremap_resource. Signed-off-by: Julia Lawall Signed-off-by: Tomi Valkeinen — drivers/video/xilinxfb.c | 8 ++++—- 1 file changed, 4 insertions(+), 4 deletions(-) …

Lire la suite

BtrLinux
Résumé de la politique de confidentialité

Ce site utilise des cookies afin que nous puissions vous fournir la meilleure expérience utilisateur possible. Les informations sur les cookies sont stockées dans votre navigateur et remplissent des fonctions telles que vous reconnaître lorsque vous revenez sur notre site Web et aider notre équipe à comprendre les sections du site que vous trouvez les plus intéressantes et utiles.