]> git.karo-electronics.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>
Thu, 19 Dec 2013 21:40:48 +0000 (13:40 -0800)
commitb8cf56076ff681617bfd1aa6137404ccf97a858c
tree760e29d9f2ed3e176a2633a8c2ce057bf77a59f4
parent769d446e98b242786d0a3b104592d00d07aeb543
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