Daniil Tatianin
19304ffb7b
net/ethtool/ioctl: return -EOPNOTSUPP if we have no phy stats
...
[ Upstream commit 9deb1e9fb88b1120a908676fa33bdf9e2eeaefce ]
It's not very useful to copy back an empty ethtool_stats struct and
return 0 if we didn't actually have any stats. This also allows for
further simplification of this function in the future commits.
Signed-off-by: Daniil Tatianin <d-tatianin@yandex-team.ru>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-24 07:17:58 +01:00
..
6lowpan
9p
9p/xen: check logical size for buffer size
2022-12-14 11:30:41 +01:00
802
mrp: introduce active flags to prevent UAF when applicant uninit
2023-01-18 11:41:37 +01:00
8021q
appletalk
atm
net/atm: fix proc_mpc_write incorrect return value
2022-10-29 10:20:35 +02:00
ax25
batman-adv
bluetooth
Bluetooth: RFCOMM: don't call kfree_skb() under spin_lock_irqsave()
2023-01-18 11:41:16 +01:00
bpf
bpf: Move skb->len == 0 checks into __bpf_redirect
2023-01-18 11:41:04 +01:00
bpfilter
bridge
netfilter: ebtables: fix memory leak when blob is malformed
2022-09-28 11:04:07 +02:00
caif
caif: fix memory leak in cfctrl_linkup_request()
2023-01-18 11:41:58 +01:00
can
can: af_can: fix NULL pointer dereference in can_rcv_filter
2022-12-14 11:30:44 +01:00
ceph
core
net/ethtool/ioctl: return -EOPNOTSUPP if we have no phy stats
2023-01-24 07:17:58 +01:00
dcb
dccp
dccp/tcp: Reset saddr on failure after inet6?_hash_connect().
2022-12-08 11:22:59 +01:00
decnet
dns_resolver
dsa
net: dsa: ksz: Check return value
2022-12-14 11:30:45 +01:00
ethernet
hsr
hsr: Avoid double remove of a node.
2023-01-18 11:41:09 +01:00
ieee802154
net: ieee802154: fix error return code in dgram_bind()
2022-11-03 23:56:54 +09:00
ife
ipv4
net/ulp: prevent ULP without clone op from entering the LISTEN status
2023-01-18 11:42:01 +01:00
ipv6
ipv6: raw: Deduct extension header length in rawv6_push_pending_frames
2023-01-18 11:42:02 +01:00
iucv
kcm
kcm: close race conditions on sk_receive_queue
2022-11-25 17:42:21 +01:00
key
af_key: Fix send_acquire race with pfkey_register
2022-12-08 11:22:57 +01:00
l2tp
l3mdev
lapb
llc
mac80211
wifi: mac80211: Fix ack frame idr leak when mesh has no route
2022-12-08 11:22:57 +01:00
mac802154
mac802154: fix missing INIT_LIST_HEAD in ieee802154_if_add()
2022-12-14 11:30:45 +01:00
mpls
ncsi
netfilter
netfilter: ipset: Fix overflow before widen in the bitmap_ip_create() function.
2023-01-18 11:42:03 +01:00
netlabel
netlink
netrom
nfc
nfc: Fix potential resource leaks
2023-01-18 11:41:57 +01:00
nsh
openvswitch
openvswitch: Fix flow lookup to use unmasked key
2023-01-18 11:41:32 +01:00
packet
net/af_packet: make sure to pull mac header
2023-01-18 11:41:45 +01:00
phonet
psample
qrtr
rds
net: rds: don't hold sock lock when cancelling work from rds_tcp_reset_callbacks()
2022-10-26 13:22:26 +02:00
rfkill
rose
rose: Fix NULL pointer dereference in rose_send_frame()
2022-11-10 17:57:51 +01:00
rxrpc
rxrpc: Fix missing unlock in rxrpc_do_sendmsg()
2023-01-18 11:41:33 +01:00
sched
net/sched: act_mpls: Fix warning during failed attribute validation
2023-01-18 11:42:04 +01:00
sctp
sctp: fix memory leak in sctp_stream_outq_migrate()
2022-12-08 11:23:03 +01:00
smc
net/smc: Remove redundant refcount increase
2022-09-15 12:04:50 +02:00
strparser
sunrpc
SUNRPC: ensure the matching upcall is in-flight upon downcall
2023-01-18 11:41:56 +01:00
switchdev
tipc
tipc: call tipc_lxc_xmit without holding node_read_lock
2023-01-18 11:42:06 +01:00
tls
net/tls: Fix race in TLS device down flow
2022-07-29 17:14:12 +02:00
unix
af_unix: Get user_ns from in_skb in unix_diag_get_exact().
2022-12-14 11:30:44 +01:00
vmw_vsock
net: vmw_vsock: vmci: Check memcpy_from_msg()
2023-01-18 11:41:13 +01:00
wimax
wireless
wifi: cfg80211: Fix not unregister reg_pdev when load_builtin_regdb_keys() fails
2023-01-18 11:41:08 +01:00
x25
net/x25: Fix skb leak in x25_lapb_receive_frame()
2022-11-25 17:42:16 +01:00
xdp
xfrm
xfrm: Update ipcomp_scratches with NULL when freed
2022-10-26 13:22:49 +02:00
compat.c
Kconfig
Makefile
socket.c
net: Fix a data-race around sysctl_somaxconn.
2022-09-05 10:27:42 +02:00
sysctl_net.c