]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mlx4_ib: remove WARN_ON() based on incorrect assumptions
authorMukesh Kacker <mukesh.kacker@oracle.com>
Thu, 27 Oct 2016 13:07:16 +0000 (06:07 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 28 Oct 2016 21:32:31 +0000 (14:32 -0700)
commit28c090204b4dd9ea769ce4715e6f85ceb0d972d1
tree9eb86522a822893386f059e261db19fe795b6049
parent57598d0c6027a5662f76e8efcb7e69efda11a879
mlx4_ib: remove WARN_ON() based on incorrect assumptions

A WARN_ON() was inserted when user data was introduced to the
ibv_cmd_alloc_shpd() by another infiniband provider to make
sure that no user data is sent to older providers such as this
one which do not expect it.

It assumed when no user data is sent the udata->inlen is zero.
The user-kernel API however always sends at least 8 octets
(which may not be initialized in case of provider libraries that
do not user user data).

We remove the WARN_ON and rely on providers not to touch that
field if their companion library is not expected to initialize it.

Orabug: 24972331

Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/infiniband/hw/mlx4/main.c