diff options
author | Julia Lawall <julia@diku.dk> | 2008-01-07 22:38:42 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 15:00:48 -0800 |
commit | 67b23219ce2f78352b0c566a472ff16c1b0fea9a (patch) | |
tree | c02e09a072d3461505033374e1026000abe2b753 /net/mac80211/rc80211_pid_algo.c | |
parent | 3becd578c5c9aafde6f562bb1dfe20d420bce6e8 (diff) |
[BLUETOOTH]: Use sockfd_put()
The function sockfd_lookup uses fget on the value that is stored in
the file field of the returned structure, so fput should ultimately be
applied to this value. This can be done directly, but it seems better
to use the specific macro sockfd_put, which does the same thing.
The problem was fixed using the following semantic patch.
(http://www.emn.fr/x-info/coccinelle/)
// <smpl>
@@
expression s;
@@
s = sockfd_lookup(...)
...
+ sockfd_put(s);
?- fput(s->file);
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/rc80211_pid_algo.c')
0 files changed, 0 insertions, 0 deletions