Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57bb562a authored by Christophe Jaillet's avatar Christophe Jaillet Committed by Doug Ledford
Browse files

IB/hfi1: Add missing error code assignment before test



It is likely that checking the result of 'setup_ctxt' is expected here.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: default avatarDennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 476d95bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -222,7 +222,7 @@ static long hfi1_file_ioctl(struct file *fp, unsigned int cmd,
		ret = assign_ctxt(fp, &uinfo);
		if (ret < 0)
			return ret;
		setup_ctxt(fp);
		ret = setup_ctxt(fp);
		if (ret)
			return ret;
		ret = user_init(fp);