]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 May 2017 19:34:53 +0000 (15:34 -0400)
commitb40a1e8babf029ceeaf7f41b9ee321a056174dad
tree3f717a7aa3a5595cf6b3a08b0658dcd4fb87f1c6
parenta60b46bcdc4e5052bf9fb007698e91ecc002d6cc
ipx: call ipxitf_put() in ioctl error path

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>
net/ipx/af_ipx.c