diff options
| author | Bart Van Assche <[email protected]> | 2019-08-01 15:38:12 -0700 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2019-08-07 21:43:55 -0400 |
| commit | 09addb1d169ed2e67a0314e6275b42e7b8605d79 (patch) | |
| tree | 249e6481bca7cbfcef38f6026132ae38f4b3c5bb /tools/perf/scripts/python/bin | |
| parent | 4b828fe156a662a4b6135019bf077040340f299b (diff) | |
scsi: core: Make scsi_internal_device_unblock_nowait() reject invalid new_state
The only 'new_state' values passed by upstream kernel code to
scsi_internal_device_unblock_nowait() are SDEV_RUNNING and
SDEV_TRANSPORT_OFFLINE. These are the only values that should be passed to
this function. Hence check the value of the 'new_state' argument to avoid
that scsi_internal_device_unblock_nowait() would be used to trigger an
illegal SCSI device state transition. In this context 'illegal' means not
allowed by scsi_device_set_state().
Cc: Christoph Hellwig <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Cc: Johannes Thumshirn <[email protected]>
Cc: Ming Lei <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions