linux-stable/drivers/infiniband
Arnd Bergmann cb9fd89f91 RDMA/core: avoid uninitialized variable warning in create_udata
As Dan pointed out, the rework I did makes it harder for smatch and other
static checkers to figure out what is going on with the uninitialized
pointers.

By open-coding the call in create_udata(), we make it more readable for
both humans and tools.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 12f727721e ("IB/uverbs: clean up INIT_UDATA_BUF_OR_NULL usage")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-11-13 16:11:11 -05:00
..
core RDMA/core: avoid uninitialized variable warning in create_udata 2017-11-13 16:11:11 -05:00
hw RDMA/bnxt_re: synchronize poll_cq and req_notify_cq verbs 2017-11-13 15:53:57 -05:00
sw IB/rxe: don't crash, if allocation of crc algorithm failed 2017-11-10 13:43:50 -05:00
ulp IB/srpt: Ensure that modifying the use_srq configfs attribute works 2017-11-13 15:25:16 -05:00
Kconfig infiniband: add MMU dependency for user_mem 2017-10-10 10:49:44 -04:00
Makefile