diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2018-09-26 18:29:11 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-26 09:56:07 -0700 |
commit | 8d908eb045bb1ad8a842910360938a204a203617 (patch) | |
tree | c9887cac68c41adc43eaf78beffccdace4491b59 /samples/mic | |
parent | 8f6637b878c9efc70ceee1ed3f480c55f697720a (diff) | |
download | linux-8d908eb045bb1ad8a842910360938a204a203617.tar.bz2 |
s390/qeth: remove CARD_FROM_CDEV helper
The cdev-to-card translation walks through two layers of drvdata,
with no locking or refcounting (where eg. the ccwgroup core only
accesses a cdev's drvdata while holding the ccwlock).
This might be safe for now, but any careless usage of the helper has the
potential for subtle races and use-after-free's. Luckily there's only
one occurrence where we _really_ need it (in qeth_irq()), for any other
user we can just pass through an appropriate card pointer.
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/mic')
0 files changed, 0 insertions, 0 deletions