forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/media/i2c/tvp5150.c
....@@ -2078,6 +2078,10 @@
20782078 tvpc->ent.name = devm_kasprintf(dev, GFP_KERNEL, "%s %s",
20792079 v4l2c->name, v4l2c->label ?
20802080 v4l2c->label : "");
2081
+ if (!tvpc->ent.name) {
2082
+ ret = -ENOMEM;
2083
+ goto err_free;
2084
+ }
20812085 }
20822086
20832087 ep_np = of_graph_get_endpoint_by_regs(np, TVP5150_PAD_VID_OUT, 0);