diff options
author | Stefan Haberland <sth@linux.vnet.ibm.com> | 2017-01-25 18:56:41 +0300 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-01-31 12:47:25 +0300 |
commit | ca732e111ff7017e79a0cbb8aa0636c6ce48eb7d (patch) | |
tree | 7097bbd9bf7f90edefde0fed88ffdb8bcd582618 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2202134e48a3b50320aeb9e3dd1186833e9d7e66 (diff) | |
download | linux-ca732e111ff7017e79a0cbb8aa0636c6ce48eb7d.tar.xz |
s390/dasd: check blockdevice pointer before trying to sync blockdevice
If safe offline is called for a DASD alias device a null pointer is passed
to fsync_bdev. So check for existence of the blockdevice before calling
fsync_bdev.
Should not be a real world problem since safe offline for an alias device
does not make sense and fsync_bdev can deal with a NULL pointer which it
gets after successful NULL pointer dereferencing on s390.
Signed-off-by: Stefan Haberland <sth@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions