From: David Herrmann Date: Wed, 26 Oct 2011 09:22:46 +0000 (+0200) Subject: Bluetooth: bfusb: Fix error path on firmware load X-Git-Tag: v3.2-rc1~4^2~24^2^2~16^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b441fab28ea1cbbf3da75dcd1e7438e6cba704c;p=pandora-kernel.git Bluetooth: bfusb: Fix error path on firmware load When loading the usb-configuration we do not signal the end of configuration on memory allocation error. This patch moves the memory allocation to the top so every error path uses "goto error" now to correctly send the usb-ctrl message when detecting some error. This also replaces GFP_ATOMIC with GFP_KERNEL as we are allowed to sleep here. Signed-off-by: David Herrmann Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan --- Reading git-diff-tree failed