summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/qlogic/qed/qed_cxt.h
diff options
context:
space:
mode:
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>2016-10-02 07:04:16 (GMT)
committerDavid S. Miller <davem@davemloft.net>2016-10-04 01:54:10 (GMT)
commitb9118b7221ebb12156d2b08d4d5647bc6076d6bb (patch)
tree705219e736db000213d2a1433af24ccacc4b1de2 /drivers/net/ethernet/qlogic/qed/qed_cxt.h
parent0fd7d43fbc4aaf358005231a6bed27eb1c2f60c3 (diff)
downloadlinux-b9118b7221ebb12156d2b08d4d5647bc6076d6bb.tar.xz
ptp: Fix resource leak in case of error
A call to 'ida_simple_remove()' is missing in the error handling path. This as been spotted with the following coccinelle script which tries to detect missing 'ida_simple_remove()' call in error handling paths. /////////////// @@ expression x; identifier l; @@ * x = ida_simple_get(...); ... if (...) { ... } ... if (...) { ... goto l; } ... * l: ... when != ida_simple_remove(...); Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Acked-by: Richard Cochran <richardcochran@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_cxt.h')
0 files changed, 0 insertions, 0 deletions