]> git.baikalelectronics.ru Git - kernel.git/commit
target_core_alua: check for buffer overflow
authorHannes Reinecke <hare@suse.de>
Thu, 19 Dec 2013 13:36:11 +0000 (14:36 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 10 Jan 2014 05:48:38 +0000 (21:48 -0800)
commitdec4102c23596a492783dafbeba30c828669d960
tree1fb950f227ff91001504c29bce32b3c9415d8352
parent87fafb01bb113b1f9a886ece5cba1a6af2753f53
target_core_alua: check for buffer overflow

When a writing to a command-provided buffer we need to ensure
that we're not writing past the end of it.
At the same time we need to continue processing as typically
the final data length (ie the required size of the buffer)
need to be returned.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_alua.c