diff options
author | Dave Olson <dave.olson@qlogic.com> | 2007-10-09 22:24:36 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-10-30 11:05:49 -0700 |
commit | 164ef7a25285bbc42d8177f454b31631ca4d3ec7 (patch) | |
tree | 8b1bb151e66af810efdeeb67124ae1ca2fad9f82 /fs | |
parent | 627934448ec80f823eafd0a7d4b7541515d543a3 (diff) | |
download | linux-164ef7a25285bbc42d8177f454b31631ca4d3ec7.tar.gz linux-164ef7a25285bbc42d8177f454b31631ca4d3ec7.tar.bz2 linux-164ef7a25285bbc42d8177f454b31631ca4d3ec7.zip |
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 <dave.olson@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions