summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2012-08-29 06:49:15 (GMT)
committerDavid S. Miller <davem@davemloft.net>2012-08-31 20:27:48 (GMT)
commit599901c3e4204e9d9c5a24df5402cd91617a2a26 (patch)
tree52612fcb3d56add7bfc4c257bbedbe25e587a477 /drivers/net
parent48f125ce1cc3ff275f9587b5bf56bf0f90766c7d (diff)
downloadlinux-599901c3e4204e9d9c5a24df5402cd91617a2a26.tar.xz
net/xfrm/xfrm_state.c: fix error return code
Initialize return variable before exiting on an error path. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } | ret@p1 = 0 ) ... when != ret = e1 when != &ret *if(...) { ... when != ret = e2 when forall return ret; } // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions