Harshvardhan Jha
8a964aa6ed
9p/xen: Fix end of loop tests for list_for_each_entry
...
commit 732b33d0dbf17e9483f0b50385bf606f724f50a2 upstream.
This patch addresses the following problems:
- priv can never be NULL, so this part of the check is useless
- if the loop ran through the whole list, priv->client is invalid and
it is more appropriate and sufficient to check for the end of
list_for_each_entry loop condition.
Link: http://lkml.kernel.org/r/20210727000709.225032-1-harshvardhan.jha@oracle.com
Signed-off-by: Harshvardhan Jha <harshvardhan.jha@oracle.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Tested-by: Stefano Stabellini <sstabellini@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-09-22 12:26:20 +02:00
..
6lowpan
6lowpan: iphc: Fix an off-by-one check of array index
2021-09-15 09:47:31 +02:00
9p
9p/xen: Fix end of loop tests for list_for_each_entry
2021-09-22 12:26:20 +02:00
802
net/802/garp: fix memleak in garp_request_join()
2021-07-31 08:19:38 +02:00
8021q
appletalk
atm
ax25
batman-adv
batman-adv: Avoid WARN_ON timing related checks
2021-06-23 14:41:23 +02:00
bluetooth
Revert "Bluetooth: Move shutdown callback before flushing tx and rx queue"
2021-09-16 12:56:13 +02:00
bpf
bpfilter
bpfilter: Specify the log level for the kmsg message
2021-07-14 16:53:33 +02:00
bridge
net: bridge: fix memleak in br_add_if()
2021-08-18 08:57:00 +02:00
caif
net: fix uninit-value in caif_seqpkt_sendmsg
2021-07-28 13:30:56 +02:00
can
can: j1939: j1939_session_deactivate(): clarify lifetime of session object
2021-08-04 12:27:40 +02:00
ceph
core
netns: protect netns ID lookups with RCU
2021-09-15 09:47:31 +02:00
dcb
dccp
dccp: add do-while-0 stubs for dccp_pr_debug macros
2021-08-26 08:36:16 -04:00
decnet
net: decnet: Fix sleeping inside in af_decnet
2021-07-28 13:30:56 +02:00
dns_resolver
dsa
net: dsa: fix error code getting shifted with 4 in dsa_slave_get_sset_count
2021-06-03 08:59:12 +02:00
ethernet
hsr
ieee802154
net: Fix memory leak in ieee802154_raw_deliver
2021-08-18 08:57:00 +02:00
ife
ipv4
ipv4: fix endianness issue in inet_rtm_getroute_build_skb()
2021-09-15 09:47:38 +02:00
ipv6
ipv6: make exception cache less predictible
2021-09-15 09:47:37 +02:00
iucv
kcm
key
l2tp
l3mdev
lapb
llc
net: llc: fix skb_over_panic
2021-08-04 12:27:39 +02:00
mac80211
mac80211: Fix insufficient headroom issue for AMSDU
2021-09-15 09:47:35 +02:00
mac802154
mpls
ncsi
netfilter
netfilter: conntrack: collect all entries in one cycle
2021-09-03 10:08:12 +02:00
netlabel
net: cipso: fix warnings in netlbl_cipsov4_add_std
2021-09-15 09:47:32 +02:00
netlink
netlink: disable IRQs for netlink_lock_table()
2021-06-16 11:59:34 +02:00
netrom
netrom: Decrease sock refcount when sock timers expire
2021-07-28 13:30:56 +02:00
nfc
net/nfc/rawsock.c: fix a permission check bug
2021-06-16 11:59:33 +02:00
nsh
openvswitch
ovs: clear skb->tstamp in forwarding path
2021-08-26 08:36:19 -04:00
packet
net/packet: annotate accesses to po->ifindex
2021-06-30 08:47:48 -04:00
phonet
psample
qrtr
net: qrtr: fix another OOB Read in qrtr_endpoint_post
2021-09-03 10:08:12 +02:00
rds
net/rds: dma_map_sg is entitled to merge entries
2021-09-03 10:08:15 +02:00
rfkill
rose
rxrpc
sched
net: sched: Fix qdisc_rate_table refcount leak when get tcf_block failed
2021-09-15 09:47:38 +02:00
sctp
sctp: move the active_key update after sh_keys is added
2021-08-12 13:20:57 +02:00
smc
Revert "net/smc: fix a NULL pointer dereference"
2021-06-03 08:59:08 +02:00
strparser
sunrpc
SUNRPC: Should wake up the privileged task firstly.
2021-07-14 16:53:05 +02:00
switchdev
tipc
tipc: fix sleeping in tipc accept routine
2021-08-04 12:27:39 +02:00
tls
tls: prevent oversized sendfile() hangs by ignoring MSG_MORE
2021-07-14 16:53:31 +02:00
unix
af_unix: fix garbage collect vs MSG_PEEK
2021-07-31 08:19:37 +02:00
vmw_vsock
vsock/virtio: avoid potential deadlock when vsock device remove
2021-08-18 08:57:01 +02:00
wimax
wireless
cfg80211: Fix possible memory leak in function cfg80211_bss_update
2021-08-04 12:27:38 +02:00
x25
net/x25: Return the correct errno code
2021-06-18 09:59:00 +02:00
xdp
xfrm
xfrm: Fix error reporting in xfrm_state_construct.
2021-07-19 08:53:11 +02:00
compat.c
net: Return the correct errno code
2021-06-18 09:59:00 +02:00
Kconfig
Makefile
socket.c
net: don't unconditionally copy_from_user a struct ifreq for socket ioctls
2021-09-03 10:08:16 +02:00
sysctl_net.c