lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sat, 2 Nov 2013 19:17:54 +0530 From: Govindarajulu Varadarajan <govindarajulu90@...il.com> To: davem@...emloft.net, gregkh@...uxfoundation.org, linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org, schwidefsky@...ibm.com, linville@...driver.com, linux-wireless@...r.kernel.org, netdev@...r.kernel.org, IvDoorn@...il.com, sbhatewara@...are.com, samuel@...tiz.org, chas@....nrl.navy.mil, roland@...nel.org, isdn@...ux-pingi.de, jcliburn@...il.com, benve@...co.com, ssujith@...co.com, jeffrey.t.kirsher@...el.com, jesse.brandeburg@...el.com, shahed.shaikh@...gic.com, joe@...ches.com, apw@...onical.com Cc: Govindarajulu Varadarajan <govindarajulu90@...il.com> Subject: [PATCH net-next 13/13] scripts/checkpatch.pl: Add dev_kfree_skb*(NULL) check to checkpatch Signed-off-by: Govindarajulu Varadarajan <govindarajulu90@...il.com> --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 66cad50..e651b8a 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3719,7 +3719,7 @@ sub process { # check for needless "if (<foo>) fn(<foo>)" uses if ($prevline =~ /\bif\s*\(\s*($Lval)\s*\)/) { my $expr = '\s*\(\s*' . quotemeta($1) . '\s*\)\s*;'; - if ($line =~ /\b(kfree|usb_free_urb|debugfs_remove(?:_recursive)?)$expr/) { + if ($line =~ /\b(kfree|dev_kfree_skb|dev_kfree_skb_any|dev_kfree_skb_irq|usb_free_urb|debugfs_remove(?:_recursive)?)$expr/) { WARN('NEEDLESS_IF', "$1(NULL) is safe this check is probably not required\n" . $hereprev); } -- 1.8.4.2 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists