Message ID | 20201207061606.163403-1-anant.thazhemadam@gmail.com |
---|---|
State | Accepted |
Commit | 899a61a3305d49e8a712e9ab20d0db94bde5929f |
Headers | show |
Series | media: usb: dvd-usb: fix uninit-value bug in dibusb_read_eeprom_byte() | expand |
diff --git a/drivers/media/usb/dvb-usb/dibusb-common.c b/drivers/media/usb/dvb-usb/dibusb-common.c index 02b51d1a1b67..aff60c10cb0b 100644 --- a/drivers/media/usb/dvb-usb/dibusb-common.c +++ b/drivers/media/usb/dvb-usb/dibusb-common.c @@ -223,7 +223,7 @@ int dibusb_read_eeprom_byte(struct dvb_usb_device *d, u8 offs, u8 *val) u8 *buf; int rc; - buf = kmalloc(2, GFP_KERNEL); + buf = kzalloc(2, GFP_KERNEL); if (!buf) return -ENOMEM;