From: Dan Carpenter Date: Wed, 13 Nov 2013 07:48:11 +0000 (+0300) Subject: [SCSI] qla4xxx: overflow in qla4xxx_set_chap_entry() X-Git-Tag: v3.14-rc1~131^2^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c60cfd73966797746530768d66597d025a69804;p=pandora-kernel.git [SCSI] qla4xxx: overflow in qla4xxx_set_chap_entry() 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 Acked-by: Vikas Chaudhary Signed-off-by: James Bottomley --- Reading git-diff-tree failed