Messages in this thread | | | Date | Mon, 1 Feb 2016 12:42:53 -0800 | From | Greg KH <> | Subject | Re: [PATCH] [dm]fix NULL pointer in dm_exception_store_create() when create dm device |
| |
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 used by "dm_exception_store_create" will be a NULL pointer. > > Signed-off-by:Ding Xiang <dingxiang@huawei.com> > --- > drivers/md/dm-snap.c | 10 ++++++++++ > 1 files changed, 10 insertions(+), 0 deletions(-)
<formletter>
This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read Documentation/stable_kernel_rules.txt for how to do this properly.
</formletter>
| |