android_kernel_motorola_sm6225/net/bluetooth/bnep
Julia Lawall 67b23219ce [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>
2008-01-28 15:00:48 -08:00
..
bnep.h [NET] BLUETOOTH: Fix whitespace errors. 2007-02-10 23:19:20 -08:00
core.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
Kconfig Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
netdev.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
sock.c [BLUETOOTH]: Use sockfd_put() 2008-01-28 15:00:48 -08:00