cdc-acm: fix uninitialized variable

variable struct usb_cdc_parsed_header h may be used
uninitialized in acm_probe.

In kernel 4.8.

/* handle quirks deadly to normal probing*/
if (quirks == NO_UNION_NORMAL)

...

goto skip_normal_probe;
}

we bypass call to

cdc_parse_cdc_header(&h, intf, buffer, buflen);

but later use h in

if (h.usb_cdc_country_functional_desc) { /* export the country data */

Signed-off-by: Oliver Neukum <oneukum@suse.com>
CC: stable@vger.kernel.org
Reported-by: Victor Sologoubov <victor0@rambler.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by Oliver Neukum and committed by Greg Kroah-Hartman 7309aa84 c289d0ef

+2
+2
drivers/usb/class/cdc-acm.c
··· 1161 if (quirks == IGNORE_DEVICE) 1162 return -ENODEV; 1163 1164 num_rx_buf = (quirks == SINGLE_RX_URB) ? 1 : ACM_NR; 1165 1166 /* handle quirks deadly to normal probing*/
··· 1161 if (quirks == IGNORE_DEVICE) 1162 return -ENODEV; 1163 1164 + memset(&h, 0x00, sizeof(struct usb_cdc_parsed_header)); 1165 + 1166 num_rx_buf = (quirks == SINGLE_RX_URB) ? 1 : ACM_NR; 1167 1168 /* handle quirks deadly to normal probing*/