target: report too-small parameter lists everywhere
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 Sep 2012 15:30:33 +0000 (17:30 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 7 Sep 2012 18:09:08 +0000 (11:09 -0700)
commit0d7f1299ca5540b9a63ab6e8bf0e89ea963eb6af
tree25bba610d95a2d7256830eb41032e5b1e2853fd4
parent306c11b28d7bb85a7adda741798a2b6b60dd305a
target: report too-small parameter lists everywhere

Several places were not checking that the parameter list length
was large enough, and thus accessing invalid memory.  Zero-length
parameter lists are just a special case of this.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_alua.c
drivers/target/target_core_iblock.c
drivers/target/target_core_pr.c