]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit38edd724577123c972f2264382005ac910ce747f
tree1fb950f227ff91001504c29bce32b3c9415d8352
parent594c42e9bd9f70a41bf79236db985ba940d28eb8
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