Re: [PATCH 7/7] Bluetooth: Fix link key persistent storage criteria

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Lizardo,

On Wed, Apr 27, 2011, Anderson Lizardo wrote:
> > +       if (new_key && !hci_persistent_key(hdev, conn, type, old_key_type)) {
> > +               list_del(&key->list);
> > +               kfree(key);
> > +               return 0;
> 
> Just to make sure, is this condition possible?
> 
> * new_key parameter not zero
> * old_key variable not NULL
> 
> If so, "key" will point to an entry from hdev->link_keys , which will
> be freed on the if() above without removing it from the list.

Do you see the list_del call there? :)

Johan
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux