iscsi-target: return -EINVAL on oversized configfs parameter
authorEric Seppanen <eric@purestorage.com>
Thu, 21 Nov 2013 22:49:56 +0000 (14:49 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 11 Dec 2013 18:59:33 +0000 (10:59 -0800)
commit2306bfb208b9c403592a0513b08f2e6ad53056d5
treebffa17764e7eb86a91620996562c92dfa3b557f6
parent374b105797c3d4f29c685f3be535c35f5689b30e
iscsi-target: return -EINVAL on oversized configfs parameter

The iSCSI CHAP auth parameters are already copied with respect for
the destination buffer size.  Return -EINVAL instead of silently
truncating the input.

Signed-off-by: Eric Seppanen <eric@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_configfs.c