mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-20 08:38:24 +08:00
isight: treat firmware data as const
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
parent
a13b04af71
commit
ed5a2825fe
@ -41,7 +41,7 @@ static int isight_firmware_load(struct usb_interface *intf,
|
||||
const struct firmware *firmware;
|
||||
unsigned char *buf = kmalloc(50, GFP_KERNEL);
|
||||
unsigned char data[4];
|
||||
u8 *ptr;
|
||||
const u8 *ptr;
|
||||
|
||||
if (!buf)
|
||||
return -ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user