diff --git a/drivers/staging/rtl8712/usb_intf.c b/drivers/staging/rtl8712/usb_intf.c index ee4c61f85a07..ae44ddf717fd 100644 --- a/drivers/staging/rtl8712/usb_intf.c +++ b/drivers/staging/rtl8712/usb_intf.c @@ -391,7 +391,7 @@ static int r871xu_drv_init(struct usb_interface *pusb_intf, /* step 5. read efuse/eeprom data and get mac_addr */ { int i, offset; - u8 mac[6]; + u8 mac[6] = {0, 0, 0, 0, 0, 0}; u8 tmpU1b, AutoloadFail, eeprom_CustomerID; u8 *pdata = padapter->eeprompriv.efuse_eeprom_data; diff --git a/drivers/staging/rtl8712/usb_ops.c b/drivers/staging/rtl8712/usb_ops.c index e64845e6adf3..751f363ab3c3 100644 --- a/drivers/staging/rtl8712/usb_ops.c +++ b/drivers/staging/rtl8712/usb_ops.c @@ -29,7 +29,7 @@ static u8 usb_read8(struct intf_hdl *intfhdl, u32 addr) u16 wvalue; u16 index; u16 len; - __le32 data; + __le32 data = 0; struct intf_priv *intfpriv = intfhdl->pintfpriv; request = 0x05;