]> git.ipfire.org Git - people/arne_f/kernel.git/commit
ipx: call ipxitf_put() in ioctl error path
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 2 May 2017 10:58:53 +0000 (13:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 12:30:13 +0000 (14:30 +0200)
commit8a5b15e198f1701da75a8223cfe72c04bcb15160
tree33ab48fd157f97d6717f16846a92888e04422ef0
parent4ae1efc7cc9899ca90d280d4e5ea322afb773908
ipx: call ipxitf_put() in ioctl error path

commit ee0d8d8482345ff97a75a7d747efc309f13b0d80 upstream.

We should call ipxitf_put() if the copy_to_user() fails.

Reported-by: 李强 <liqiang6-s@360.cn>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipx/af_ipx.c