usb: gadget: fastboot: allow data.image to be const
Do not directly store the dynamically allocated memory in data.image
as we want to make that pointer const and then no longer can call
free() on it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent e0c7662 commit d804ae2a602c9b192ee6d709af0cb7b4b8c3cd74
@Sascha Hauer Sascha Hauer authored on 29 Jan 2018
Showing 1 changed file
View
drivers/usb/gadget/f_fastboot.c