Skip to content
Commit 62df6108 authored by Maciej Panek's avatar Maciej Panek Committed by Carles Cufí
Browse files

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: default avatarMaciej Panek <panekmaciej@outlook.com>
parent d5a5f072
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment