Articles de cet auteur
Oct 12 2012
dm bufio: use list_move
Author: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Use list_move() instead of list_del() + list_add(). spatch with a semantic match was used to find this. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun Signed-off-by: Alasdair G Kergon — drivers/md/dm-bufio.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/drivers/md/dm-bufio.c b/drivers/md/dm-bufio.c index cc06a1e..b9e006a 100644 — a/drivers/md/dm-bufio.c +++ b/drivers/md/dm-bufio.c @@ -441,8 …
Oct 12 2012
dm mpath: fix check for null mpio in end_io fn
Author: Wei Yongjun <yongjun_wei@trendmicro.com.cn> The mpio dereference should be moved below the BUG_ON NULL test in multipath_end_io(). spatch with a semantic match was used to found this. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun Signed-off-by: Alasdair G Kergon — drivers/md/dm-mpath.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff –git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index d778563..573bd04 100644 …
Oct 10 2012
ath/ath9k/ar9003_eeprom.c: Remove semicolon after if
Author: Peter Senna Tschudin <peter.senna@gmail.com> This patch remove a semicolon after if(…) that is preventing the error check to work correctly. Removing this semicolon will change the code behavior, but this is intended. The semantic patch that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r1@ position p; @@ if (…);@p @script:python@ p0
Oct 06 2012
i2c-smbus: Convert kzalloc to devm_kzalloc
Author: Julia Lawall <Julia.Lawall@lip6.fr> Converting kzalloc to devm_kzalloc simplifies the code and ensures that the result, alert, is freed after the irq allocated by the subsequent devm_request_irq. This in turn ensures that when an interrupt can be triggered, the alert structure is still available. The problem of a free after a devm_request_irq was found using …
Oct 05 2012
drivers/net/ethernet/marvell/sky2.c: fix error return code
Author: Peter Senna Tschudin <peter.senna@gmail.com> The function sky2_probe() return 0 for success and negative value for most of its internal tests failures. There are two exceptions that are error cases going to err_out*:. For this two cases, the function abort its success execution path, but returns non negative value, making it dificult for a caller …
Oct 05 2012
drivers/net/ethernet/marvell/skge.c: fix error return code
Author: Peter Senna Tschudin <peter.senna@gmail.com> The function skge_probe() return 0 for success and negative value for most of its internal tests failures. There is one exception that is error case going to err_out_led_off:. For this error case, the function abort its success execution path, but returns non negative value, making it difficult for a caller …
Oct 05 2012
drivers/net/ethernet/sun/sungem.c: fix error return code
Author: Peter Senna Tschudin <peter.senna@gmail.com> The function gem_init_one() return 0 for success and negative value for most of its internal tests failures. There is one exception that is error case going to err_out_free_consistent:. For this error case, the function abort its success execution path, but returns non negative value, making it difficult for a caller …
Oct 05 2012
drivers/net/ethernet/sun/niu.c: fix error return code
Author: Peter Senna Tschudin <peter.senna@gmail.com> The function niu_pci_init_one() return 0 for success and negative value for most of its internal tests failures. There is one exception that is error case going to err_out_free_res:. For this error case, the function abort its success execution path, but returns non negative value, making it difficult for a caller …
Oct 05 2012
drivers/net/ethernet/renesas/sh_eth.c: fix error return code
Author: Peter Senna Tschudin <peter.senna@gmail.com> The function sh_eth_drv_probe() return 0 for success and negative value for most of its internal tests failures. There is one exception that is error case going to out_release:. For this error case, the function abort its success execution path, but returns non negative value, making it difficult for a caller …
Oct 05 2012
drivers/net/ethernet/natsemi/xtsonic.c: fix error return code
Author: Peter Senna Tschudin <peter.senna@gmail.com> The function sonic_probe1() return 0 for success and negative value for most of its internal tests failures. There is one exception that is error case going to out:. For this error case, the function abort its success execution path, but returns non negative value, making it difficult for a caller …