diff options
| author | Andy Shevchenko <[email protected]> | 2021-08-11 12:48:45 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2021-08-12 16:53:02 +0000 |
| commit | d9d5b8961284b0051726e0fcda91d1e297e087f5 (patch) | |
| tree | 986a08a3f91835c25638b3dc4d99f8e4b64b2360 /drivers/usb/cdns3/core.c | |
| parent | net: dsa: sja1105: unregister the MDIO buses during teardown (diff) | |
| download | kernel-d9d5b8961284b0051726e0fcda91d1e297e087f5.tar.gz kernel-d9d5b8961284b0051726e0fcda91d1e297e087f5.zip | |
wwan: core: Avoid returning NULL from wwan_create_dev()
Make wwan_create_dev() to return either valid or error pointer,
In some cases it may return NULL. Prevent this by converting
it to the respective error pointer.
Fixes: 9a44c1cc6388 ("net: Add a WWAN subsystem")
Signed-off-by: Andy Shevchenko <[email protected]>
Acked-by: Sergey Ryazanov <[email protected]>
Reviewed-by: Loic Poulain <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/core.c')
0 files changed, 0 insertions, 0 deletions
