diff options
| -rw-r--r-- | drivers/staging/comedi/drivers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers.c b/drivers/staging/comedi/drivers.c index e25eba5713c1..b3b5125faa72 100644 --- a/drivers/staging/comedi/drivers.c +++ b/drivers/staging/comedi/drivers.c | |||
| @@ -482,7 +482,7 @@ int comedi_device_attach(struct comedi_device *dev, struct comedi_devconfig *it) | |||
| 482 | ret = comedi_device_postconfig(dev); | 482 | ret = comedi_device_postconfig(dev); |
| 483 | if (ret < 0) { | 483 | if (ret < 0) { |
| 484 | comedi_device_detach(dev); | 484 | comedi_device_detach(dev); |
| 485 | module_put(dev->driver->module); | 485 | module_put(driv->module); |
| 486 | } | 486 | } |
| 487 | /* On success, the driver module count has been incremented. */ | 487 | /* On success, the driver module count has been incremented. */ |
| 488 | return ret; | 488 | return ret; |
