mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 19:21:28 +02:00
Merge "dwc3-msm-core: Add NULL check with return value from memremap() API"
This commit is contained in:
commit
8678efeb9b
|
|
@ -2650,6 +2650,8 @@ static int msm_ep_setup_ebc_trbs(struct usb_ep *ep, struct usb_request *req)
|
|||
edep->ebc_trb_pool = memremap(phys_base,
|
||||
num_trbs * sizeof(struct dwc3_trb),
|
||||
MEMREMAP_WT);
|
||||
if (!edep->ebc_trb_pool)
|
||||
return -ENOMEM;
|
||||
|
||||
for (i = 0; i < num_trbs; i++) {
|
||||
trb = &edep->ebc_trb_pool[i];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user