netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* net/bluetooth/rfcomm/tty.c: use-after-free
@ 2007-07-23  1:25 Adrian Bunk
  2007-07-23  7:47 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2007-07-23  1:25 UTC (permalink / raw)
  To: Ville Tervo, Marcel Holtmann, maxk; +Cc: bluez-devel, linux-kernel, netdev

Commit 8de0a15483b357d0f0b821330ec84d1660cadc4e added the following 
use-after-free in net/bluetooth/rfcomm/tty.c:

<--  snip  -->

...
static int rfcomm_dev_add(struct rfcomm_dev_req *req, struct rfcomm_dlc *dlc)
{
...
        if (IS_ERR(dev->tty_dev)) {
                list_del(&dev->list);
                kfree(dev);
                return PTR_ERR(dev->tty_dev);
        }
...

<--  snip  -->

Spotted by the Coverity checker.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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

end of thread, other threads:[~2007-07-26  7:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-23  1:25 net/bluetooth/rfcomm/tty.c: use-after-free Adrian Bunk
2007-07-23  7:47 ` Marcel Holtmann
2007-07-26  7:12   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).