]> git.karo-electronics.de Git - linux-beck.git/commit
IB/mlx5: Assign SRQ type earlier
authorMaor Gottlieb <maorg@mellanox.com>
Sun, 27 Nov 2016 13:18:20 +0000 (15:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jan 2017 07:24:34 +0000 (08:24 +0100)
commit7c8441c89043d9914a441e5589bb76148f1a93da
tree55387577e49d95fbdc978c1ab8da38ffdc366d4e
parentdae9f4f144119229e4218f92ec0876549460ed45
IB/mlx5: Assign SRQ type earlier

commit c73b7911de97fad3ab9032a110af48d6ab2da48f upstream.

Move the SRQ type assignment to be before actually using it
in create_srq_user() and in create_srq_kernel() functions.

Fixes: af1ba291c5e4 ('{net, IB}/mlx5: Refactor internal SRQ API')
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/mlx5/srq.c