forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/net/ethernet/sun/ldmvsw.c
....@@ -290,6 +290,9 @@
290290
291291 hp = mdesc_grab();
292292
293
+ if (!hp)
294
+ return -ENODEV;
295
+
293296 rmac = mdesc_get_property(hp, vdev->mp, remote_macaddr_prop, &len);
294297 err = -ENODEV;
295298 if (!rmac) {