diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-02-22 19:32:38 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-05 22:48:04 (GMT) |
commit | deb0b53bb52a0c53c43bf894b40630b414ec56fa (patch) | |
tree | 5cbb4f1574462d68bd43bc1301eaecbd2907f654 | |
parent | 3c359f060f47200b1dcdd151edda872a14f62783 (diff) | |
download | linux-deb0b53bb52a0c53c43bf894b40630b414ec56fa.tar.xz |
staging: gdm72xx: zero out padding
We pad the start of this buffer with 256 bytes of padding. It's not
clear to me exactly what's going on or how it's used but let's zero it
out.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/gdm72xx/usb_boot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/gdm72xx/usb_boot.c b/drivers/staging/gdm72xx/usb_boot.c index 99a5c07..b91eea6 100644 --- a/drivers/staging/gdm72xx/usb_boot.c +++ b/drivers/staging/gdm72xx/usb_boot.c @@ -286,7 +286,7 @@ static int em_download_image(struct usb_device *usbdev, const char *img_name, return ret; } - buf = kmalloc(DOWNLOAD_CHUCK + pad_size, GFP_KERNEL); + buf = kzalloc(DOWNLOAD_CHUCK + pad_size, GFP_KERNEL); if (!buf) { release_firmware(firm); return -ENOMEM; |