Message ID | 20211122150754.4044081-1-arnd@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [v2] nixge: fix mac address error handling again | expand |
diff --git a/drivers/net/ethernet/ni/nixge.c b/drivers/net/ethernet/ni/nixge.c index cfeb7620ae20..9d8826ad84a6 100644 --- a/drivers/net/ethernet/ni/nixge.c +++ b/drivers/net/ethernet/ni/nixge.c @@ -1213,6 +1213,8 @@ static void *nixge_get_nvmem_address(struct device *dev) mac = nvmem_cell_read(cell, &cell_size); nvmem_cell_put(cell); + if (IS_ERR(mac)) + return NULL; return mac; }