IB/ehca: Require in_wc in process_mad()
authorAlexander Schmidt <alexs@linux.vnet.ibm.com>
Tue, 16 Feb 2010 08:59:50 +0000 (08:59 +0000)
committerRoland Dreier <rolandd@cisco.com>
Fri, 19 Feb 2010 19:13:39 +0000 (11:13 -0800)
commit45e354e3f235ecb51e16576d6668c43cddbb6e68
tree8bbcb9c6925d79460e2c13e5c9f9e0a0a4cece22
parentfa55e30bc35bf4ec5a7304a537c0ce5438e908e2
IB/ehca: Require in_wc in process_mad()

If the caller does not pass a valid in_wc to process_mad(), return MAD
failure status, as it is not possible to generate a valid MAD redirect
response (and redirects are the only MAD responses ehca generates).

Signed-off-by: Alexander Schmidt <alexs@linux.vnet.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ehca/ehca_sqp.c