]> Pileus Git - ~andy/linux/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)
commita922c68732725866c88457026cf06a7620846506
treee859a07f850fa62fc7e8494737b9a4830fdb936c
parent3f8c03ee05801bf8539dd136d9246a416c45052a
[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