Commit b7b3cf44 authored by Ira Weiny's avatar Ira Weiny Committed by Doug Ledford
Browse files

IB/rdmavt: Properly pass gfp to hw driver function



alloc_qpn must use GFP and the hardware drivers should use it as well.

Reviewed-by: default avatarMike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: default avatarIra Weiny <ira.weiny@intel.com>
Signed-off-by: default avatarDennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 61a650c1
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -303,8 +303,7 @@ static int alloc_qpn(struct rvt_dev_info *rdi, struct rvt_qpn_table *qpt,
	u32 ret;

	if (rdi->driver_f.alloc_qpn)
		return rdi->driver_f.alloc_qpn(rdi, qpt, type, port_num,
					       GFP_KERNEL);
		return rdi->driver_f.alloc_qpn(rdi, qpt, type, port_num, gfp);

	if (type == IB_QPT_SMI || type == IB_QPT_GSI) {
		unsigned n;