ipx: call ipxitf_put() in ioctl error path
Dan Carpenter authored
commit ee0d8d84

 upstream.

We should call ipxitf_put() if the copy_to_user() fails.
Reported-by: default avatar李强 <liqiang6-s@360.cn>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
820adccd
Name Last commit Last update
..
6lowpan 6lowpan: ndisc: no overreact if no short address is available
802 net: Kill dev_rebuild_header
8021q net: add recursion limit to GRO
9p p9_client_readdir() fix
appletalk appletalk: use IS_ENABLED() instead of checking for built-in or module
atm lec: use IS_ENABLED() instead of checking for built-in or module
ax25 ax25: Fix segfault after sock connection timeout
batman-adv batman-adv: Check for alloc errors when preparing TT local data
bluetooth Bluetooth: Fix user channel for 32bit userspace on 64bit kernel
bridge bridge: drop netfilter fake rtable unconditionally
caif net: caif: remove ineffective check
can can: Fix kernel panic at security_sock_rcv_skb
ceph libceph: force GFP_NOIO for socket allocations
core iov_iter: don't revert iov buffer if csum error
dcb net: dcb: set error code on failures
dccp dccp: fix memory leak during tear-down of unsuccessful connection request
decnet net: fix decnet rtnexthop parsing
dns_resolver KEYS: Add a facility to restrict new links into a keyring
dsa net: dsa: Do not destroy invalid network devices
ethernet net: introduce device min_header_len
hsr net/hsr: Remove unused but set variable
ieee802154 ieee802154: 6lowpan: fix intra pan id check
ipv4 ipv4, ipv6: ensure raw socket message is big enough to hold an IP header
ipv6 ipv6: reorder ip6_route_dev_notifier after ipv6_dev_notf
ipx ipx: call ipxitf_put() in ioctl error path
irda irda: Fix lockdep annotations in hashbin_delete().
iucv net/af_iucv: don't use paged skbs for TX on HiperSockets
kcm kcm: return immediately after copy_from_user() failure
key af_key: fix two typos
l2tp l2tp: fix PPP pseudo-wire auto-loading
l3mdev net: ipv6: Remove l3mdev_get_saddr6
lapb net/lapb: tuse %*ph to dump buffers
llc net/llc: avoid BUG_ON() in skb_orphan()
mac80211 mac80211: fix MU-MIMO follow-MAC mode
mac802154 mac802154: use rate limited warnings for malformed frames
mpls mpls: Do not decrement alive counter for unregister events
ncsi net/ncsi: Improve HNCDSC AEN handler
netfilter netfilter: conntrack: refine gc worker heuristics, redux
netlabel netlabel: Implement CALIPSO config functions for SMACK.
netlink netlink: Do not schedule work from sk_destruct
netrom netfilter: Remove spurios included of netfilter.h
nfc NFC: digital: Fix RTOX supervisor PDU handling
openvswitch openvswitch: Add missing case OVS_TUNNEL_KEY_ATTR_PAD
packet net/packet: fix overflow in check for tp_reserve
phonet sock: struct proto hash function may error
qrtr Merge tag 'net-next-qcom-soc-4.7-2-merge' of git://github.com/andersson/kernel
rds RDS: TCP: unregister_netdevice_notifier() in error path of rds_tcp_init_net
rfkill rfkill: Use switch to demux userspace operations
rose rose: limit sk_filter trim to payload
rxrpc rxrpc: Fix checking of error from ip6_route_output()
sched
sctp
strparser
sunrpc
switchdev
tipc
unix
vmw_vsock
wimax
wireless
x25
xfrm
Kconfig
Makefile
compat.c
socket.c
sysctl_net.c