staging: comedi: comedi_bond: no need to free dev->private on detach
The comedi core will free `dev->private` if it is non-NULL after calling the "detach" handler (`bonding_detach()`), so don't bother freeing it in `bonding_detach()`. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
ad9f81f0b5
Коммит
c2af5b9681
|
@ -355,8 +355,6 @@ static void bonding_detach(struct comedi_device *dev)
|
|||
}
|
||||
kfree(devpriv->devs);
|
||||
devpriv->devs = NULL;
|
||||
kfree(devpriv);
|
||||
dev->private = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче