diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-11-13 10:48:11 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-06 11:34:10 -0800 |
commit | 8507df5828d2335c6a07c87804e18df0ff2a4af1 (patch) | |
tree | 2ba2e300a2bc3754c69439954bc1b9cbf1272f58 /drivers/regulator/max8907-regulator.c | |
parent | e88f3608e8230b5d82353701656e0f60166114b6 (diff) |
SCSI: qla4xxx: overflow in qla4xxx_set_chap_entry()
commit 3c60cfd73966797746530768d66597d025a69804 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/regulator/max8907-regulator.c')
0 files changed, 0 insertions, 0 deletions