diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-02-13 22:09:47 +0000 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-02-14 02:09:35 +0000 |
commit | 8e575c50a171f2579e367a7f778f86477dfdaf49 (patch) | |
tree | 7fa13380825c8d2d811514f6ad8f865913aa2608 /sound | |
parent | 72859d91d93319c00a18c29f577e56bf73a8654a (diff) | |
download | linux-8e575c50a171f2579e367a7f778f86477dfdaf49.tar.bz2 |
target: Add missing WRITE_SAME end-of-device sanity check
This patch adds a check to sbc_setup_write_same() to verify
the incoming WRITE_SAME LBA + number of blocks does not exceed
past the end-of-device.
Also check for potential LBA wrap-around as well.
Reported-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Martin Petersen <martin.petersen@oracle.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org # 3.8+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions