summaryrefslogtreecommitdiffstats
path: root/drivers/s390/net
diff options
context:
space:
mode:
authorUrsula Braun <ursula.braun@de.ibm.com>2011-11-15 02:31:12 +0000
committerDavid S. Miller <davem@davemloft.net>2011-11-16 17:27:59 -0500
commit6cc31d09bedeb6f25951b18c23b6aee5df0a242c (patch)
treebb81001ae6dcfd8e1abbeb1ad11c41400f359cb9 /drivers/s390/net
parent709e8697af1c86772c1a6fccda6d4b0e2e226547 (diff)
downloadop-kernel-dev-6cc31d09bedeb6f25951b18c23b6aee5df0a242c.zip
op-kernel-dev-6cc31d09bedeb6f25951b18c23b6aee5df0a242c.tar.gz
qeth: return with -EPERM if sniffing is not enabled
Without appropriate configuration at the SE, a HiperSockets device cannot be used for sniffing. Setting the sniffer attribute is rejected with -EPERM. Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net')
-rw-r--r--drivers/s390/net/qeth_l3_sys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/net/qeth_l3_sys.c b/drivers/s390/net/qeth_l3_sys.c
index 0ea2fbf..d979bb2 100644
--- a/drivers/s390/net/qeth_l3_sys.c
+++ b/drivers/s390/net/qeth_l3_sys.c
@@ -335,10 +335,10 @@ static ssize_t qeth_l3_dev_sniffer_store(struct device *dev,
QETH_IN_BUF_COUNT_MAX)
qeth_realloc_buffer_pool(card,
QETH_IN_BUF_COUNT_MAX);
- break;
} else
rc = -EPERM;
- default: /* fall through */
+ break;
+ default:
rc = -EINVAL;
}
out:
OpenPOWER on IntegriCloud