mirror of https://github.com/torvalds/linux.git
sg_init_table zeroes its first argument, so the allocation of that argument doesn't have to. the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression x,n,flags; @@ x = - kcalloc + kmalloc_array (n,sizeof(struct scatterlist),flags) ... sg_init_table(x,n) // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr> Link: https://lore.kernel.org/r/1600601186-7420-14-git-send-email-Julia.Lawall@inria.fr Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|---|---|---|
| .. | ||
| Makefile | ||
| scif_api.c | ||
| scif_debugfs.c | ||
| scif_dma.c | ||
| scif_epd.c | ||
| scif_epd.h | ||
| scif_fd.c | ||
| scif_fence.c | ||
| scif_main.c | ||
| scif_main.h | ||
| scif_map.h | ||
| scif_mmap.c | ||
| scif_nm.c | ||
| scif_nodeqp.c | ||
| scif_nodeqp.h | ||
| scif_peer_bus.c | ||
| scif_peer_bus.h | ||
| scif_ports.c | ||
| scif_rb.c | ||
| scif_rb.h | ||
| scif_rma.c | ||
| scif_rma.h | ||
| scif_rma_list.c | ||
| scif_rma_list.h | ||