Tag: c796984f2f1c528ac21220808525440d49413f8c

CDC NCM: Use kzalloc rather than kmalloc followed by memset with 0

Author: Thomas Meyer <thomas@m3y3r.de> This considers some simple cases that are common and easy to validate Note in particular that there are no …s in the rule, so all of the matched code has to be contiguous The semantic patch that makes this change is available in scripts/coccinelle/api/alloc/kzalloc-simple.cocci. Signed-off-by: Thomas Meyer Signed-off-by: David S. Miller …

Continue reading