aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorFlorian Fainelli <[email protected]>2016-07-15 23:42:16 +0000
committerDavid S. Miller <[email protected]>2016-07-17 05:06:00 +0000
commit8e6ce7ebeb34f0992f56de078c3744fb383657fa (patch)
tree45e45ffd2d44c992615d3f3495df7e271858e75a /fs/jbd2/commit.c
parentnet: nb8800: Fix SKB leak in nb8800_receive() (diff)
downloadkernel-8e6ce7ebeb34f0992f56de078c3744fb383657fa.tar.gz
kernel-8e6ce7ebeb34f0992f56de078c3744fb383657fa.zip
net: cavium: liquidio: Avoid dma_unmap_single on uninitialized ndata
The label lio_xmit_failed is used 3 times through liquidio_xmit() but it always makes a call to dma_unmap_single() using potentially uninitialized variables from "ndata" variable. Out of the 3 gotos, 2 run after ndata has been initialized, and had a prior dma_map_single() call. Fix this by adding a new error label: lio_xmit_dma_failed which does this dma_unmap_single() and then processed with the lio_xmit_failed fallthrough. Fixes: f21fb3ed364bb ("Add support of Cavium Liquidio ethernet adapters") Reported-by: coverity (CID 1309740) Signed-off-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions