commit | 4652d5a9537156d0cec61f91265921fadbe3dbe1 | [log] [tgz] |
---|---|---|
author | Pratham Pratap <prathampratap@codeaurora.org> | Thu Mar 15 10:31:20 2018 +0530 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Mon Mar 19 22:13:31 2018 -0700 |
tree | 930130af14011571a946f2c61872ee81d9501a14 | |
parent | ccf21f8533d54a3b3bd2b50d1a65745b6498607b [diff] |
usb: dwc3: Avoid NULL pointer access dwc3_calc_trbs_left function is calling dwc3_ep_prev_trb which can return NULL if trb pool is empty. This change adds check for the return value of dwc3_ep_prev_trb function to avoid NULL pointer dereference. Change-Id: Id11d5ffd23da7c070d5e0b26842d8738b073b212 Signed-off-by: Pratham Pratap <prathampratap@codeaurora.org>