mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 08:16:41 +07:00
[media] s5k5baf: Check v4l2_of_parse_endpoint() return value
The v4l2_of_parse_endpoint() function can fail so check the return value. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
fda8b13ddc
commit
2388309c74
@ -1868,8 +1868,11 @@ static int s5k5baf_parse_device_node(struct s5k5baf *state, struct device *dev)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
v4l2_of_parse_endpoint(node_ep, &ep);
|
||||
ret = v4l2_of_parse_endpoint(node_ep, &ep);
|
||||
of_node_put(node_ep);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
state->bus_type = ep.bus_type;
|
||||
|
||||
switch (state->bus_type) {
|
||||
|
Loading…
Reference in New Issue
Block a user