|
@@ -148,7 +148,8 @@ int v4l2_async_notifier_register(struct v4l2_device *v4l2_dev,
|
|
struct v4l2_async_subdev *asd;
|
|
struct v4l2_async_subdev *asd;
|
|
int i;
|
|
int i;
|
|
|
|
|
|
- if (!notifier->num_subdevs || notifier->num_subdevs > V4L2_MAX_SUBDEVS)
|
|
|
|
|
|
+ if (!v4l2_dev || !notifier->num_subdevs ||
|
|
|
|
+ notifier->num_subdevs > V4L2_MAX_SUBDEVS)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
notifier->v4l2_dev = v4l2_dev;
|
|
notifier->v4l2_dev = v4l2_dev;
|