diff options
| -rw-r--r-- | drivers/usb/host/ehci-hcd.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 05d3f0bd5..fdad73972 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -945,7 +945,9 @@ int usb_lowlevel_init(int index, void **controller)  	 *         Split Transactions will be spread across microframes using  	 *         S-mask and C-mask.  	 */ -	ehcic[index].periodic_list = memalign(4096, 1024*4); +	if (ehcic[index].periodic_list == NULL) +		ehcic[index].periodic_list = memalign(4096, 1024 * 4); +  	if (!ehcic[index].periodic_list)  		return -ENOMEM;  	for (i = 0; i < 1024; i++) { |