IB/core: Modify conditional on ucontext existence
authorEli Cohen <eli@mellanox.com>
Sun, 14 Feb 2016 15:07:49 +0000 (17:07 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 3 Mar 2016 15:19:40 +0000 (10:19 -0500)
commiteaebc7d21e102d86b389c77686c7e6258dd6d479
treec5b3d1826dd1fe5def9698db5c5fe33441b0420a
parent2dbd5186a39c7ef0d92045c43b4857c23cb117ab
IB/core: Modify conditional on ucontext existence

Since we allow to call legacy verbs using their extended counterpart,
the check on ucontext has to move up to a common area in case this verb
is ever extended.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_main.c