From: Vitaly Kuznetsov Date: Thu, 25 Jun 2015 16:12:11 +0000 (+0200) Subject: storvsc: be more picky about scmnd->sc_data_direction X-Git-Tag: omap-for-v4.3/fixes-rc1~115^2~69 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb1cf0804fe582f8a626c3cc591cb3127536137c;p=pandora-kernel.git 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ář Signed-off-by: Vitaly Kuznetsov Acked-by: K. Y. Srinivasan Signed-off-by: James Bottomley --- Reading git-diff-tree failed