From deb0b53bb52a0c53c43bf894b40630b414ec56fa Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Mon, 22 Feb 2016 22:32:38 +0300 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/gdm72xx/usb_boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.7.4