summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2011-08-11 05:41:14 +0400
committerNicholas Bellinger <nab@linux-iscsi.org>2011-08-22 23:26:25 +0400
commit7abbe7f3e4243e28a9169ee1b8d76f10a6f5d37c (patch)
tree7edb86180f5b093cbef210562af8712d2d98d7fa /net/lapb/lapb_timer.c
parent72f4ba1e32a1e5da31dcf14ea4b8985ae88a8bdb (diff)
downloadlinux-7abbe7f3e4243e28a9169ee1b8d76f10a6f5d37c.tar.xz
target: Fix SYNCHRONIZE_CACHE zero LBA + range breakage
This patch fixes a SYNCHRONIZE_CACHE CDB handling bug with IBLOCK/FILEIO backends where transport_cmd_get_valid_sectors() was incorrectly rejecting a zero LBA + range CDB from being processed, and returning CHECK_CONDITION. This includes changing transport_cmd_get_valid_sectors() to return '0' on success and '-EINVAL' on failure (this makes more sense than sectors), and to only check transport_cmd_get_valid_sectors() when a non zero LBA + range SYNCHRONIZE_CACHE operation has been receieved for the non passthrough case. Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions