From: Mike Christie Date: Mon, 29 Sep 2014 18:55:41 +0000 (-0500) Subject: be2iscsi: check ip buffer before copying X-Git-Tag: fixes-for-v3.18-merge-window~25^2^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a41a9ad3bbf61fae0b6bfb232153da60d14fdbd9;p=pandora-kernel.git be2iscsi: check ip buffer before copying Dan Carpenter found a issue where be2iscsi would copy the ip from userspace to the driver buffer before checking the len of the data being copied: http://marc.info/?l=linux-scsi&m=140982651504251&w=2 This patch just has us only copy what we the driver buffer can support. Cc: Tested-by: John Soni Jose Signed-off-by: Mike Christie Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed