diff options
author | Hal Rosenstock <hal.rosenstock@gmail.com> | 2007-08-03 13:45:17 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-08-03 13:45:17 -0400 |
commit | 445d68070c9c02acdda38e6d69bd43096f521035 (patch) | |
tree | ef828dbec51e77ba56906f167c7671c50b0fa54a /fs/dnotify.c | |
parent | 5399891052badf97948098d01772113801f6ef58 (diff) |
IB/mad: Fix error path if response alloc fails in ib_mad_recv_done_handler()
If ib_mad_recv_done_handler() fails to allocate response, then it just
printed a warning and continued, which leads to an oops if the MAD is
being handled for a switch device, because the switch code uses
response without checking for NULL. Fix this by bailing out of the
function if the allocation fails.
Signed-off-by: Suresh Shelvapille <suri@baymicrosystems.com>
Signed-off-by: Hal Rosenstock <hal.rosenstock@gmail.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'fs/dnotify.c')
0 files changed, 0 insertions, 0 deletions