Re: [PATCH] [dm]fix NULL pointer in dm_exception_store_create() when create dm device

2016-02-01 Thread Greg KH
On Mon, Feb 01, 2016 at 03:05:58PM +0800, DingXiang wrote: > In some conditions(such as umount fs failed),origin path or origin bdev or > both of the two is same > as cow's.If this happens, origin dev will be freed when get cow dev in > function "dm_get_device" , > then "s->origin->dev" which

Re: [PATCH] [dm]fix NULL pointer in dm_exception_store_create() when create dm device

2016-02-01 Thread Greg KH
On Mon, Feb 01, 2016 at 03:05:58PM +0800, DingXiang wrote: > In some conditions(such as umount fs failed),origin path or origin bdev or > both of the two is same > as cow's.If this happens, origin dev will be freed when get cow dev in > function "dm_get_device" , > then "s->origin->dev" which

[PATCH] [dm]fix NULL pointer in dm_exception_store_create() when create dm device

2016-01-31 Thread DingXiang
In some conditions(such as umount fs failed),origin path or origin bdev or both of the two is same as cow's.If this happens, origin dev will be freed when get cow dev in function "dm_get_device" , then "s->origin->dev" which used by "dm_exception_store_create" will be a NULL pointer.

[PATCH] [dm]fix NULL pointer in dm_exception_store_create() when create dm device

2016-01-31 Thread DingXiang
In some conditions(such as umount fs failed),origin path or origin bdev or both of the two is same as cow's.If this happens, origin dev will be freed when get cow dev in function "dm_get_device" , then "s->origin->dev" which used by "dm_exception_store_create" will be a NULL pointer.