commit | 928c75fbeb6b62edbdff7c52ee1e9a3591faee4f | [log] [tgz] |
---|---|---|
author | LABBE Corentin <clabbe.montjoie@gmail.com> | Tue Nov 24 15:34:09 2015 +0100 |
committer | Felipe Balbi <balbi@ti.com> | Tue Dec 08 08:13:28 2015 -0600 |
tree | 74a4b331f38f97eff8615c5af2c6dea8620023b0 | |
parent | 62e345ae5b6ed977b02c24d1eaeaece062f9fb17 [diff] |
usb: phy: msm: fix a possible NULL dereference of_match_device could return NULL, and so cause a NULL pointer dereference later. Even if the probability of this case is very low, fixing it made static analyzers happy. Solving this with of_device_get_match_data made also code simplier. Reported-by: coverity (CID 1324133) Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com> Signed-off-by: Felipe Balbi <balbi@ti.com>