9
0
Fork 0

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:
Sascha Hauer 2013-03-04 16:07:55 +01:00
parent 092bfd5eb5
commit bf617286d2
1 changed files with 1 additions and 1 deletions

View File

@ -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