linux/net/bluetooth
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 [BLUETOOTH]: Use sockfd_put() 2008-01-28 15:00:48 -08:00
cmtp [BLUETOOTH]: Use sockfd_put() 2008-01-28 15:00:48 -08:00
hidp [BLUETOOTH]: Use sockfd_put() 2008-01-28 15:00:48 -08:00
rfcomm [NET]: Convert init_timer into setup_timer 2008-01-28 14:53:35 -08:00
af_bluetooth.c [NET]: Make socket creation namespace safe. 2007-10-10 16:49:07 -07:00
hci_conn.c [NET]: Convert init_timer into setup_timer 2008-01-28 14:53:35 -08:00
hci_core.c [Bluetooth] Add support for handling simple eSCO links 2007-10-22 02:59:47 -07:00
hci_event.c [Bluetooth] Add support for handling simple eSCO links 2007-10-22 02:59:47 -07:00
hci_sock.c [NET]: Forget the zero_it argument of sk_alloc() 2007-11-01 00:39:31 -07:00
hci_sysfs.c [BLUETOOTH]: Move children of connection device to NULL before connection down. 2008-01-23 03:11:39 -08:00
Kconfig [S390] Kconfig: unwanted menus for s390. 2007-05-10 15:46:07 +02:00
l2cap.c [NET]: Convert init_timer into setup_timer 2008-01-28 14:53:35 -08:00
lib.c
Makefile
sco.c [NET]: Convert init_timer into setup_timer 2008-01-28 14:53:35 -08:00