android_kernel_xiaomi_sm8350/drivers/infiniband/core
Andrew Morton 1d3f4b905a IB: Fix ib_umem_get() when npages == 0
gcc correctly warned:

drivers/infiniband/core/umem.c: In function 'ib_umem_get':
drivers/infiniband/core/umem.c:78: warning: 'ret' may be used uninitialized in this function

Set ret to 0 in case npages == 0 and the loop isn't entered at all.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2007-07-09 16:17:33 -07:00
..
addr.c
agent.c IB/mad: Enhance SMI for switch support 2007-07-09 16:17:32 -07:00
agent.h
cache.c Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
cm_msgs.h
cm.c IB/cm: Fix stale connection detection 2007-05-29 16:07:09 -07:00
cma.c RDMA/cma: Fix initialization of next_port 2007-06-07 23:24:38 -07:00
core_priv.h
device.c Merge branch 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband 2007-05-21 16:19:32 -07:00
fmr_pool.c IB/fmr_pool: Add prefix to all printks 2007-05-06 21:18:11 -07:00
iwcm.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
iwcm.h
mad_priv.h PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
mad_rmpp.c
mad_rmpp.h
mad.c IB/mad: Enhance SMI for switch support 2007-07-09 16:17:32 -07:00
Makefile IB/uverbs: Export ib_umem_get()/ib_umem_release() to modules 2007-05-08 18:00:37 -07:00
multicast.c IB: Remove garbage non-ASCII characters from comments 2007-07-09 16:17:32 -07:00
packer.c
sa_query.c IB: Remove garbage non-ASCII characters from comments 2007-07-09 16:17:32 -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 IB: Set class_dev->dev in core for nice device symlink 2007-04-24 21:30:38 -07:00
ucm.c IB/ucm: Simplify ib_ucm_event() 2007-04-24 16:31:11 -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 PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
uverbs_cmd.c IB/uverbs: Export ib_umem_get()/ib_umem_release() to modules 2007-05-08 18:00:37 -07:00
uverbs_main.c IB/uverbs: Export ib_umem_get()/ib_umem_release() to modules 2007-05-08 18:00:37 -07:00
uverbs_marshall.c
uverbs.h IB/uverbs: Export ib_umem_get()/ib_umem_release() to modules 2007-05-08 18:00:37 -07:00
verbs.c IB: Add CQ comp_vector support 2007-05-06 21:18:11 -07:00