summaryrefslogtreecommitdiffstats
path: root/drivers/staging/gdm72xx
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-02-22 22:32:38 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-03-05 14:48:04 -0800
commitdeb0b53bb52a0c53c43bf894b40630b414ec56fa (patch)
tree5cbb4f1574462d68bd43bc1301eaecbd2907f654 /drivers/staging/gdm72xx
parent3c359f060f47200b1dcdd151edda872a14f62783 (diff)
downloadlinux-deb0b53bb52a0c53c43bf894b40630b414ec56fa.tar.bz2
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>
Diffstat (limited to 'drivers/staging/gdm72xx')
-rw-r--r--drivers/staging/gdm72xx/usb_boot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/gdm72xx/usb_boot.c b/drivers/staging/gdm72xx/usb_boot.c
index 99a5c0739709..b91eea64f5b6 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;