projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
476d95b
)
IB/hfi1: Add missing error code assignment before test
author
Christophe Jaillet
<
[email protected]
>
Wed, 10 Aug 2016 05:34:27 +0000
(07:34 +0200)
committer
Doug Ledford
<
[email protected]
>
Mon, 22 Aug 2016 18:31:43 +0000
(14:31 -0400)
It is likely that checking the result of 'setup_ctxt' is expected here.
Signed-off-by: Christophe JAILLET <
[email protected]
>
Acked-by: Dennis Dalessandro <
[email protected]
>
Signed-off-by: Doug Ledford <
[email protected]
>
drivers/infiniband/hw/hfi1/file_ops.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/hfi1/file_ops.c
b/drivers/infiniband/hw/hfi1/file_ops.c
index 1ecbec1923589c3ec96d0958ec45541aa2b5724b..ed76be39b20b828e6d983c10101e2e702c21b901 100644
(file)
--- a/
drivers/infiniband/hw/hfi1/file_ops.c
+++ b/
drivers/infiniband/hw/hfi1/file_ops.c
@@
-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);