aboutsummaryrefslogtreecommitdiff
path: root/arch/m68k
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2015-06-25 18:12:11 +0200
committerJames Bottomley <JBottomley@Odin.com>2015-08-12 15:55:59 -0700
commitcb1cf0804fe582f8a626c3cc591cb3127536137c (patch)
tree2e9add2e90a00a512c97c262b628d2a74c0a0ee5 /arch/m68k
parent10978e48ccc1718dce5c2d275b761ab99c593a81 (diff)
storvsc: be more picky about scmnd->sc_data_direction
Under the 'default' case in scmnd->sc_data_direction we have 3 options: - DMA_NONE which we handle correctly. - DMA_BIDIRECTIONAL which is never supposed to be set by SCSI stack. - Garbage value. Do WARN() and return -EINVAL in the last two cases. virtio_scsi does BUG_ON() here but it looks like an overkill. Reported-by: Radim Krčmář <rkrcmar@redhat.com> Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Acked-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'arch/m68k')
0 files changed, 0 insertions, 0 deletions