diff options
| author | Martin K. Petersen <[email protected]> | 2015-12-16 22:53:52 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2015-12-22 02:37:18 +0000 |
| commit | 9c1d9c207bb800498347a2716da298043ee280c5 (patch) | |
| tree | e05d8f3b152b028d81d5b2694dfd533023bf54db /net/switchdev/switchdev.c | |
| parent | Revert "SCSI: Fix NULL pointer dereference in runtime PM" (diff) | |
| download | kernel-9c1d9c207bb800498347a2716da298043ee280c5.tar.gz kernel-9c1d9c207bb800498347a2716da298043ee280c5.zip | |
sd: Reject optimal transfer length smaller than page size
Eryu Guan reported that loading scsi_debug would fail. This turned out
to be caused by scsi_debug reporting an optimal I/O size of 32KB which
is smaller than the 64KB page size on the PowerPC system in question.
Add a check to ensure that we only use the device-reported OPTIMAL
TRANSFER LENGTH if it is bigger than or equal to the page cache size.
Reported-by: Eryu Guan <[email protected]>
Reported-by: Ming Lei <[email protected]>
Reviewed-by: Douglas Gilbert <[email protected]>
Reviewed-by: Ewan Milne <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
