aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorDragos Tatulea <[email protected]>2015-11-16 09:52:48 +0000
committerDavid S. Miller <[email protected]>2015-11-16 20:24:37 +0000
commit24cb7055a3066634a0f3fa0cd6a4780652905d35 (patch)
tree14c4d8df3dc359e0921723ebc299a0866bb38ffe /net/unix/af_unix.c
parentbnx2x: Fix VLANs null-pointer for 57710, 57711 (diff)
downloadkernel-24cb7055a3066634a0f3fa0cd6a4780652905d35.tar.gz
kernel-24cb7055a3066634a0f3fa0cd6a4780652905d35.zip
net: switchdev: fix return code of fdb_dump stub
rtnl_fdb_dump always expects an index to be returned by the ndo_fdb_dump op, but when CONFIG_NET_SWITCHDEV is off, it returns an error. Fix that by returning the given unmodified idx. A similar fix was 0890cf6cb6ab ("switchdev: fix return value of switchdev_port_fdb_dump in case of error") but for the CONFIG_NET_SWITCHDEV=y case. Fixes: 45d4122ca7cd ("switchdev: add support for fdb add/del/dump via switchdev_port_obj ops.") Signed-off-by: Dragos Tatulea <[email protected]> Acked-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions