target: Check for LBA + sectors wrap-around in sbc_parse_cdb

commit aa179935ed upstream.

This patch adds a check to sbc_parse_cdb() in order to detect when
an LBA + sector vs. end-of-device calculation wraps when the LBA is
sufficently large enough (eg: 0xFFFFFFFFFFFFFFFF).

Cc: Martin Petersen <martin.petersen@oracle.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
This commit is contained in:
Nicholas Bellinger 2015-02-13 22:27:40 +00:00 • committed by Sasha Levin
commit cdc937a511