mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 18:12:48 +00:00
Unfortunately, one cannot hold on to the struct firmware that request_firmware_nowait() hands off, which is needed in some cases. Allow this by requiring the callback to free it (via release_firmware). Additionally, give it a gfp_t parameter -- all the current users call it from a GFP_KERNEL context so the GFP_ATOMIC isn't necessary. This also marks an API break which is useful in a sense, although that is obviously not the primary purpose of this change. Signed-off-by: Johannes Berg <[email protected]> Acked-by: Marcel Holtmann <[email protected]> Cc: Ming Lei <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Pavel Roskin <[email protected]> Cc: Abhay Salunke <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>