android_kernel_xiaomi_sm8350/drivers/infiniband/core
Hal Rosenstock 445d68070c 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>
2007-08-03 10:45:17 -07:00
..
addr.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
agent.c IB/mad: Enhance SMI for switch support 2007-07-09 16:17:32 -07:00
agent.h
cache.c
cm_msgs.h IB/cm: cm_msgs.h should include ib_cm.h 2007-07-10 21:50:53 -07:00
cm.c IB/cm: Make internal function cm_get_ack_delay() static 2007-07-17 18:37:43 -07:00
cma.c RDMA/cma: Remove local write permission from QP access flags 2007-07-17 20:30:22 -07:00
core_priv.h
device.c IB/core: Ignore membership bit in ib_find_pkey() 2007-08-03 10:45:17 -07:00
fmr_pool.c
iwcm.c
iwcm.h
mad_priv.h
mad_rmpp.c
mad_rmpp.h
mad.c IB/mad: Fix error path if response alloc fails in ib_mad_recv_done_handler() 2007-08-03 10:45:17 -07:00
Makefile
multicast.c IB: Remove garbage non-ASCII characters from comments 2007-07-09 16:17:32 -07:00
packer.c
sa_query.c IB/sa: Don't need to check for default P_Key twice 2007-08-03 10:45:17 -07:00
sa.h IB: Remove garbage non-ASCII characters from comments 2007-07-09 16:17:32 -07:00
smi.c IB/mad: Enhance SMI for switch support 2007-07-09 16:17:32 -07:00
smi.h IB/mad: Enhance SMI for switch support 2007-07-09 16:17:32 -07:00
sysfs.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband 2007-07-12 16:45:40 -07:00
ucm.c IB/cm: Include HCA ACK delay in local ACK timeout 2007-07-10 21:50:05 -07:00
ucma.c
ud_header.c
umem.c IB: Fix ib_umem_get() when npages == 0 2007-07-09 16:17:33 -07:00
user_mad.c
uverbs_cmd.c
uverbs_main.c
uverbs_marshall.c
uverbs.h
verbs.c