Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66288d35 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "net: cnss: Fix the NULL pointer dereference"

parents 015ba175 da604312
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -244,7 +244,10 @@ EXPORT_SYMBOL(cnss_dump_stack);

enum cnss_dev_bus_type cnss_get_dev_bus_type(struct device *dev)
{
	if (!dev || !dev->bus)
	if (!dev)
		return CNSS_BUS_NONE;

	if (!dev->bus)
		return CNSS_BUS_NONE;

	if (memcmp(dev->bus->name, "sdio", 4) == 0)