]> 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)
commitfc86fbd7c72c8656160362de12c21cf0540926ed
tree1fb950f227ff91001504c29bce32b3c9415d8352
parent4847bf6217c9d52915f2a3f4a0bb89e5718a62c6
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