net: l2: ethernet: check if the dev->api->get_capabilities method not NULL
Adds missing checks for get_capabilities method not being NULL.
Fixes crash with netusb and possibly other drivers.
Signed-off-by:
Maciej Panek <panekmaciej@outlook.com>
Loading
Please sign in to comment