projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
switch simple cases of fget_light to fdget
[deliverable/linux.git]
/
drivers
/
infiniband
/
core
/
uverbs_main.c
diff --git
a/drivers/infiniband/core/uverbs_main.c
b/drivers/infiniband/core/uverbs_main.c
index 604556d73d250e59cde7559a9e5a870089419fe6..6f2ce6fa98f8b0446d4ed45fabe7b3a67a49fcdb 100644
(file)
--- a/
drivers/infiniband/core/uverbs_main.c
+++ b/
drivers/infiniband/core/uverbs_main.c
@@
-541,16
+541,15
@@
struct file *ib_uverbs_alloc_event_file(struct ib_uverbs_file *uverbs_file,
struct ib_uverbs_event_file *ib_uverbs_lookup_comp_file(int fd)
{
struct ib_uverbs_event_file *ev_file = NULL;
struct ib_uverbs_event_file *ib_uverbs_lookup_comp_file(int fd)
{
struct ib_uverbs_event_file *ev_file = NULL;
- struct f
ile *filp
;
+ struct f
d f = fdget(fd)
;
- filp = fget(fd);
- if (!filp)
+ if (!f.file)
return NULL;
return NULL;
- if (f
ilp
->f_op != &uverbs_event_fops)
+ if (f
.file
->f_op != &uverbs_event_fops)
goto out;
goto out;
- ev_file = f
ilp
->private_data;
+ ev_file = f
.file
->private_data;
if (ev_file->is_async) {
ev_file = NULL;
goto out;
if (ev_file->is_async) {
ev_file = NULL;
goto out;
@@
-559,7
+558,7
@@
struct ib_uverbs_event_file *ib_uverbs_lookup_comp_file(int fd)
kref_get(&ev_file->ref);
out:
kref_get(&ev_file->ref);
out:
- f
put(filp
);
+ f
dput(f
);
return ev_file;
}
return ev_file;
}
This page took
0.027011 seconds
and
5
git commands to generate.