diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2015-07-28 20:11:40 +0300 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-07-29 10:11:52 +0300 |
commit | 515f022e8b59ce928fe5d82affb3e93ab53d12ed (patch) | |
tree | cc84e1aba2bcc35fb17ce043d582cd48290d6d36 /arch/s390/pci/pci_sysfs.c | |
parent | 2b1df72416a858f928c4edcbbb7f13b8dfc10a35 (diff) | |
download | linux-515f022e8b59ce928fe5d82affb3e93ab53d12ed.tar.xz |
s390/pci: handle events for unused functions
Receiving error events for a pci function that's currently not in use
will crash the kernel. For example the procedure for FW upgrades might
include:
* remove the function from Linux
* apply FW upgrade
* rescan for new functions
Receiving an event during the FW upgrade will result in a use after free
when printing the functions name. Just print "n/a" in such cases.
Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/pci/pci_sysfs.c')
0 files changed, 0 insertions, 0 deletions