projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dae84c8
)
s390/qeth: Allow reading hsuid in state DOWN
author
Julian Wiedmann
<
[email protected]
>
Thu, 12 Jan 2017 14:48:35 +0000
(15:48 +0100)
committer
David S. Miller
<
[email protected]
>
Thu, 12 Jan 2017 15:02:43 +0000
(10:02 -0500)
Accessing the current hsuid via card->options.hsuid is perfectly
fine, even when the card is DOWN.
Signed-off-by: Julian Wiedmann <
[email protected]
>
Reviewed-by: Thomas Richter <
[email protected]
>
Acked-by: Ursula Braun <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/s390/net/qeth_l3_sys.c
patch
|
blob
|
history
diff --git
a/drivers/s390/net/qeth_l3_sys.c
b/drivers/s390/net/qeth_l3_sys.c
index 0e00a5ce0f000f292ffe77584b031b97ba12f553..3cd4d9f7d5bdd03e3c1d1994972d81715e0c1cdd 100644
(file)
--- a/
drivers/s390/net/qeth_l3_sys.c
+++ b/
drivers/s390/net/qeth_l3_sys.c
@@
-250,9
+250,6
@@
static ssize_t qeth_l3_dev_hsuid_show(struct device *dev,
if (card->info.type != QETH_CARD_TYPE_IQD)
return -EPERM;
- if (card->state == CARD_STATE_DOWN)
- return -EPERM;
-
memcpy(tmp_hsuid, card->options.hsuid, sizeof(tmp_hsuid));
EBCASC(tmp_hsuid, 8);
return sprintf(buf, "%s\n", tmp_hsuid);