]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] g_file_storage: fix obscure race condition
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 6 Oct 2005 20:38:45 +0000 (16:38 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 28 Oct 2005 23:47:43 +0000 (16:47 -0700)
commit269c5f8f21576fa5d1e9299423743489dbe9eb92
treee859a07f850fa62fc7e8494737b9a4830fdb936c
parent08669548ff35885a13b7b00110aa1b3489472bcf
[PATCH] g_file_storage: fix obscure race condition

This patch (as575) fixes an unlikely race in the g_file_storage driver.
The problem can occur only when the driver is unbound before its
initialization routine has finished.

I also took the opportunity to replace kmalloc/memset with kzalloc.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/file_storage.c