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)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 5 Jun 2017 20:17:23 +0000 (21:17 +0100)
commitc64988b55a19fc5c85f85c433976d6e5210f54dc
treefa8fa1beefa7d92f13012e7f65e1bcc77973ab5f
parenta1141b19b23a0605d46f3fab63fd2d76207096c4
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: Ben Hutchings <ben@decadent.org.uk>
net/ipx/af_ipx.c