From: Dennis Dalessandro Date: Thu, 20 Feb 2014 16:02:48 +0000 (-0500) Subject: IB/qib: Fix potential buffer overrun in sending diag packet routine X-Git-Tag: v3.15-rc1~103^2^9~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c20c81909455f64f2df6107cb099ee5569d9f62;p=pandora-kernel.git IB/qib: Fix potential buffer overrun in sending diag packet routine Guard against a potential buffer overrun. Right now the qib driver is protected by the fact that the data structure in question is only 16 bits. Should that ever change the problem will be exposed. There is a similar defect in the ipath driver and this brings the two code paths into sync. Reported-by: Nico Golde Reported-by: Fabian Yamaguchi Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro Signed-off-by: Roland Dreier --- Reading git-diff-tree failed