]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Fix gfp passing in create_qp_common()
authorJiri Kosina <jkosina@suse.cz>
Mon, 9 Jun 2014 14:36:33 +0000 (16:36 +0200)
committerRoland Dreier <roland@purestorage.com>
Mon, 9 Jun 2014 17:17:12 +0000 (10:17 -0700)
commit1c14f15fba3862db2aa2b750dcb393f634ccfb3c
treee055aa42847f53fee632110087d242ad4208b72d
parentfd372cef02c14a917dff4892873013e6dd0bf75d
IB/mlx4: Fix gfp passing in create_qp_common()

There are two kzalloc() calls which were not converted to use value of
gfp passed to create_qp_common() instead of using hardcoded GFP_KERNEL
in 121da92064ba ("IB/mlx4: Implement IB_QP_CREATE_USE_GFP_NOIO").  Fix
this by passing gfp value down properly.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx4/qp.c