Re: [PATCH 1/2] USB: usb-skeleton.c: fix open/disconnect race

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

 



Hi Greg,

On Fri, Dec 16, 2011 at 10:20 PM, Ming Lei <tom.leiming@xxxxxxxxx> wrote:
> If usb device is disconnected between usb_get_intfdata()
> and kref_get() in skel_open(), kref_get may access a freed
> object.
>
> Also check if device is disconnected in ->open.

Looks you have queued the patch into your tree, but just now I find the patch
is not needed at all, since we have had minor_rwsem(drivers/usb/core/file.c)
for this purpose, please drop the patch, sorry for it.

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


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux