summary refs log tree commit diff
path: root/net/ipv4/raw_diag.c
diff options
context:
space:
mode:
authorKarsten Graul <kgraul@linux.ibm.com>2019-04-11 11:17:33 +0200
committerDavid S. Miller <davem@davemloft.net>2019-04-11 11:04:08 -0700
commit8ef659f1a840c953a59442ff1400ec73baf3b601 (patch)
tree2242eb523cb766fcf6a76574b650457c348a732e /net/ipv4/raw_diag.c
parent07603b230895a74ebb1e2a1231ac45c29c2a8cd3 (diff)
downloadlinux-8ef659f1a840c953a59442ff1400ec73baf3b601.tar.gz
net/smc: fix return code from FLUSH command
The FLUSH command is used to empty the pnet table. No return code is
expected from the command. Commit a9d8b0b1e3d6 added namespace support
for the pnet table and changed the FLUSH command processing to call
smc_pnet_remove_by_pnetid() to remove the pnet entries. This function
returns -ENOENT when no entry was deleted, which is now the return code
of the FLUSH command. As a result the FLUSH command will return an error
when the pnet table is already empty.
Restore the expected behavior and let FLUSH always return 0.

Fixes: a9d8b0b1e3d6 ("net/smc: add pnet table namespace support")
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/raw_diag.c')
0 files changed, 0 insertions, 0 deletions