aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ieee1394/csr.h
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2005-11-18 17:18:26 -0500
committerRoland Dreier <rolandd@cisco.com>2005-11-18 17:18:26 -0500
commiteabc77935d8d2a761c88b9cbb6313bd54b6ddbb3 (patch)
treecde3d8c648c09264669ca207df597d9e96c849bb /drivers/ieee1394/csr.h
parent48fd0d1fdd357caa2de8cb4ce6af810df7535f43 (diff)
IB/umad: make sure write()s have sufficient data
Make sure that userspace passes in enough data when sending a MAD. We always copy at least sizeof (struct ib_user_mad) + IB_MGMT_RMPP_HDR bytes from userspace, so anything less is definitely invalid. Also, if the length is less than this limit, it's possible for the second copy_from_user() to get a negative length and trigger a BUG(). Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/ieee1394/csr.h')
0 files changed, 0 insertions, 0 deletions