Initial commit
This commit is contained in:
11
package/qca/qca-nss-gmac/patches/101-nss-gmac-test-ptr.patch
Normal file
11
package/qca/qca-nss-gmac/patches/101-nss-gmac-test-ptr.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/ipq806x/nss_gmac_ctrl.c
|
||||
+++ b/ipq806x/nss_gmac_ctrl.c
|
||||
@@ -992,7 +992,7 @@ static int32_t nss_gmac_of_get_pdata(str
|
||||
return -EFAULT;
|
||||
}
|
||||
maddr = (uint8_t *)of_get_mac_address(np);
|
||||
- if (maddr)
|
||||
+ if (!IS_ERR_OR_NULL(maddr))
|
||||
memcpy(gmaccfg->mac_addr, maddr, ETH_ALEN);
|
||||
|
||||
if (of_address_to_resource(np, 0, &memres_devtree) != 0)
|
||||
Reference in New Issue
Block a user