Message ID | 20241028142107.737053-1-arnd@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | media: dvbdev: return -EINVAL on failure | expand |
diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-core/dvbdev.c index 78f46cb47c84..8c8dc7bbc59b 100644 --- a/drivers/media/dvb-core/dvbdev.c +++ b/drivers/media/dvb-core/dvbdev.c @@ -551,7 +551,7 @@ int dvb_register_device(struct dvb_adapter *adap, struct dvb_device **pdvbdev, kfree(dvbdev); *pdvbdev = NULL; mutex_unlock(&dvbdev_register_lock); - return ret; + return -EINVAL; } #endif dvbdev->minor = minor;