]> git.openfabrics.org - ~shefty/rdma-win.git/commit
mthca/mlx4: add check to validate output data sizes
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 20 Jan 2009 21:34:40 +0000 (21:34 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 20 Jan 2009 21:34:40 +0000 (21:34 +0000)
commit9ca9f84a1cddeeb49859506f65a676b85aa3a8e5
treec347d571a8b95f3db1c60dd17556eb6262c0c016
parent997735f9804ad9d7d1a1186fdecb884bef001093
mthca/mlx4: add check to validate output data sizes

Only the hardware drivers know what size the output data buffer must be for ndi_modify_qp.  Have the drivers verify that the provided data buffer is large enough.

This fixes a crash if (say, a buggy) userspace (library under development) does not provide a response buffer.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1@1858 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
trunk/hw/mlx4/kernel/hca/qp.c
trunk/hw/mthca/kernel/hca_verbs.c