From: Dave Olson Date: Wed, 10 Oct 2007 05:24:36 +0000 (-0700) Subject: IB/ipath: Fix incorrect use of sizeof on msg buffer (function argument) X-Git-Tag: v2.6.24-rc2~71^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=164ef7a25285bbc42d8177f454b31631ca4d3ec7;p=pandora-kernel.git IB/ipath: Fix incorrect use of sizeof on msg buffer (function argument) Inside a function declared as void foo(char bar[512]) the value of sizeof bar is the size of a pointer, not 512. So avoid constructions like this by passing the size explicitly. Also reduce the size of the buffer to 128 bytes (512 was overly generous). Signed-off-by: Dave Olson Signed-off-by: Roland Dreier --- Reading git-diff-tree failed