IB/mthca: Handle -ENOMEM in forward_trap()
authorDan Carpenter <error27@gmail.com>
Tue, 11 Jan 2011 01:42:10 +0000 (17:42 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 11 Jan 2011 01:42:10 +0000 (17:42 -0800)
commitd0444f1527f22d193c209d4fdad0dbabbf2be2ee
treed2f17364cd4455470ab5b8ef62151d48aa77507f
parent3c0eee3fe6a3a1c745379547c7e7c904aa64f6d5
IB/mthca: Handle -ENOMEM in forward_trap()

ib_create_send_mad() can return ERR_PTR(-ENOMEM) here.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_mad.c