[Devel] [PATCH rh7 v2] ve/drivers: Do not forget to release mismatched device found

Vladimir Davydov vdavydov at parallels.com
Fri Jul 17 10:45:42 PDT 2015


On Fri, Jul 17, 2015 at 08:15:55PM +0300, Cyrill Gorcunov wrote:
> Upon call of device_destroy_namespace we walk over namespace devices
> looking for one which match on both device maj/min and VE itself,
> but the thing is that if device belong to another VE we continue
> iteration with never released get_device call.
> 
> Thus rework device_destroy_namespace (thanks to vdavydov@
> for idea) -- pass __match_devt_ns matcher which would
> test for namespace inside class_find_device itself.
> 
> https://jira.sw.ru/browse/PSBM-34777
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at virtuozzo.com>

Reviewed-by: Vladimir Davydov <vdavydov at parallels.com>



More information about the Devel mailing list