Linux bluetooth development
 help / color / mirror / Atom feed
* [Bluez-devel] Refcounting problem in rfcomm
@ 2006-07-31 14:44 Peter Wippich
  2006-07-31 18:13 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Wippich @ 2006-07-31 14:44 UTC (permalink / raw)
  To: bluez-devel


Hi all, 

while trying to implement a server tty which can be used without a user 
space daemon I came across a reference counting problem.  Function 
rfcomm_accept_connection() 
calls __module_get(nsock->ops->owner) but there is no corresponding
module_put(). I think for user space sockets this won't be a problem. 
However, if the owner of the socket is the rfcomm module itself the 
reference count gets wrong.    

A work around for this may be to decrement the reference count just before 
releasing the socket used for listening. 

Does anybody has some better idea ?? 

Thank you and best regards,

Peter 
 

|       Peter Wippich                   Voice: +49 30 46776411          |
|       G&W Instruments GmbH            fax:   +49 30 46776419          |
|       Gustav-Meyer-Allee 25, Geb. 12  Email: pewi@gw-instruments.de   |
|       D-13355 Berlin  / Germany                                       |


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-07-31 18:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-31 14:44 [Bluez-devel] Refcounting problem in rfcomm Peter Wippich
2006-07-31 18:13 ` Marcel Holtmann
2006-07-31 16:33   ` Peter Wippich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox