Articles de cet auteur
Oct 03 2012
drivers/video/savage/savagefb_driver.c: fix error return code
Author: Peter Senna Tschudin <peter.senna@gmail.com> Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } | ret@p1 = 0 ) ... …
Sep 28 2012
drivers/staging/iio: Remove unnecessary semicolon
Author: Peter Senna Tschudin <peter.senna@gmail.com> A simplified version of the semantic patch that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r1@ statement S; position p,p1; @@ S@p1;@p @script:python r2@ p
Sep 28 2012
sound: Remove unnecessary semicolon
Author: Peter Senna Tschudin <peter.senna@gmail.com> A simplified version of the semantic patch that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r1@ statement S; position p,p1; @@ S@p1;@p @script:python r2@ p
Sep 28 2012
[media] drivers/media: Remove unnecessary semicolon
Author: Peter Senna Tschudin <peter.senna@gmail.com> A simplified version of the semantic patch that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r1@ statement S; position p,p1; @@ S@p1;@p @script:python r2@ p
Sep 27 2012
ext4: use kmem_cache_zalloc instead of kmem_cache_alloc/memset
Author: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Using kmem_cache_zalloc() instead of kmem_cache_alloc() and memset(). spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun Signed-off-by: « Theodore Ts’o » — fs/ext4/mballoc.c | 6 ++—- 1 file changed, 2 insertions(+), 4 deletions(-) diff –git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index bb821a9..8ec6f88 100644 — a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -2232,12 …
Sep 26 2012
drbd: use list_move_tail instead of list_del/list_add_tail
Author: Lars Ellenberg <lars.ellenberg@linbit.com> Using list_move_tail() instead of list_del() + list_add_tail(). spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg — drivers/block/drbd/drbd_worker.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/drivers/block/drbd/drbd_worker.c b/drivers/block/drbd/drbd_worker.c index eeda8b8..377f27b 100644 — a/drivers/block/drbd/drbd_worker.c +++ …
Sep 24 2012
[media] drivers/media/platform/soc_camera/mx2_camera.c: fix error return code
Author: Peter Senna Tschudin <peter.senna@gmail.com> Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } | ret@p1 = 0 ) ... …
Sep 24 2012
ctcm: fix error return code
Author: Peter Senna Tschudin <peter.senna@gmail.com> Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } | ret@p1 = 0 ) ... …
Sep 24 2012
drivers/s390/net: removes unnecessary semicolon
Author: Peter Senna Tschudin <peter.senna@gmail.com> removes unnecessary semicolon Found by Coccinelle: http://coccinelle.lip6.fr/ Signed-off-by: Peter Senna Tschudin Signed-off-by: Ursula Braun Signed-off-by: Frank Blaschka Signed-off-by: David S. Miller — drivers/s390/net/ctcm_fsms.c | 2 +- drivers/s390/net/qeth_core_main.c | 4 ++– 2 files changed, 3 insertions(+), 3 deletions(-) diff –git a/drivers/s390/net/ctcm_fsms.c b/drivers/s390/net/ctcm_fsms.c index d4ade9e..fb92524 100644 — a/drivers/s390/net/ctcm_fsms.c +++ b/drivers/s390/net/ctcm_fsms.c @@ …
Sep 24 2012
qeth: fix possible memory leak in qeth_l3_add_[vipa|rxip]()
Author: Wei Yongjun <yongjun_wei@trendmicro.com.cn> ipaddr has been allocated in function qeth_l3_add_vipa() but does not free before leaving from the error handling cases. The same problem also exists in function qeth_l3_add_rxip(). spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun Signed-off-by: Frank Blaschka Signed-off-by: David S. Miller — drivers/s390/net/qeth_l3_main.c | …