[SCSI] qla4xxx: overflow in qla4xxx_set_chap_entry()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 13 Nov 2013 07:48:11 +0000 (10:48 +0300)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 16 Dec 2013 18:57:51 +0000 (10:57 -0800)
We should cap the size of memcpy() because it comes from the network
and can't be trusted.

Fixes: 26ffd7b45fe9 ('[SCSI] qla4xxx: Add support to set CHAP entries')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>

No differences found