Re: [PATCH] device-dax: fix cdev leak

2017-02-23 Thread Dan Williams
On Thu, Feb 23, 2017 at 12:20 PM, Jason Gunthorpe wrote: > On Thu, Feb 23, 2017 at 11:22:03AM -0800, Dan Williams wrote: >> If device_add() fails, cleanup the cdev. Otherwise, we leak a kobj_map() >> with a stale device number. >> >> Fixes: ba09c01d2fa8 ("dax:

Re: [PATCH] device-dax: fix cdev leak

2017-02-23 Thread Dan Williams
On Thu, Feb 23, 2017 at 12:20 PM, Jason Gunthorpe wrote: > On Thu, Feb 23, 2017 at 11:22:03AM -0800, Dan Williams wrote: >> If device_add() fails, cleanup the cdev. Otherwise, we leak a kobj_map() >> with a stale device number. >> >> Fixes: ba09c01d2fa8 ("dax: convert to the cdev api") >> Cc: >>

Re: [PATCH] device-dax: fix cdev leak

2017-02-23 Thread Jason Gunthorpe
On Thu, Feb 23, 2017 at 11:22:03AM -0800, Dan Williams wrote: > If device_add() fails, cleanup the cdev. Otherwise, we leak a kobj_map() > with a stale device number. > > Fixes: ba09c01d2fa8 ("dax: convert to the cdev api") > Cc: > Cc: Logan Gunthorpe

Re: [PATCH] device-dax: fix cdev leak

2017-02-23 Thread Jason Gunthorpe
On Thu, Feb 23, 2017 at 11:22:03AM -0800, Dan Williams wrote: > If device_add() fails, cleanup the cdev. Otherwise, we leak a kobj_map() > with a stale device number. > > Fixes: ba09c01d2fa8 ("dax: convert to the cdev api") > Cc: > Cc: Logan Gunthorpe > Reported-by: Jason Gunthorpe >

[PATCH] device-dax: fix cdev leak

2017-02-23 Thread Dan Williams
If device_add() fails, cleanup the cdev. Otherwise, we leak a kobj_map() with a stale device number. Fixes: ba09c01d2fa8 ("dax: convert to the cdev api") Cc: Cc: Logan Gunthorpe Reported-by: Jason Gunthorpe

[PATCH] device-dax: fix cdev leak

2017-02-23 Thread Dan Williams
If device_add() fails, cleanup the cdev. Otherwise, we leak a kobj_map() with a stale device number. Fixes: ba09c01d2fa8 ("dax: convert to the cdev api") Cc: Cc: Logan Gunthorpe Reported-by: Jason Gunthorpe Signed-off-by: Dan Williams --- drivers/dax/dax.c |1 + 1 file changed, 1