usb: ehci: initialize ehci_data
Without it fields of ehci_data may be unitialized and the driver crashes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
092bfd5eb5
commit
bf617286d2
|
@ -892,7 +892,7 @@ int ehci_register(struct device_d *dev, struct ehci_data *data)
|
|||
|
||||
static int ehci_probe(struct device_d *dev)
|
||||
{
|
||||
struct ehci_data data;
|
||||
struct ehci_data data = {};
|
||||
struct ehci_platform_data *pdata = dev->platform_data;
|
||||
|
||||
/* default to EHCI_HAS_TT to not change behaviour of boards
|
||||
|
|
Loading…
Reference in New Issue