[Devel] [PATCH rh7 v2] vtty: Don't free console mapping until no clients left

Vladimir Davydov vdavydov at virtuozzo.com
Tue Jun 14 01:29:10 PDT 2016


On Sat, Jun 11, 2016 at 12:35:13PM +0300, Cyrill Gorcunov wrote:
...
> @@ -939,6 +938,7 @@ static vtty_map_t *vtty_map_alloc(envid_
>  	lockdep_assert_held(&tty_mutex);
>  	if (map) {
>  		map->veid = veid;
> +		init_completion(&map->work);

Stale hunk?

>  		veid = idr_alloc(&vtty_idr, map, veid, veid + 1, GFP_KERNEL);
>  		if (veid < 0) {
>  			kfree(map);


More information about the Devel mailing list