Files
linux-apfs/drivers/mtd
Dan Carpenter b49e345e61 mtd: docg3: dereferencing an ERR_PTR() in docg3_probe()
If doc_probe_device() returned an ERR_PTR, then we accidentally saved
that to docg3_floors[floor] = mtd; which gets derefenced in the error
handling when we call doc_release_device().

I've reworked the error handling to take care of that and hopefully
make it a little simpler.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-01-09 18:07:32 +00:00
..
2011-11-07 09:11:16 -08:00
2011-09-11 15:02:16 +03:00
2011-09-11 15:02:16 +03:00
2011-11-07 09:11:16 -08:00
2011-09-11 15:02:13 +03:00
2011-09-21 09:19:06 +03:00
2011-09-21 09:19:06 +03:00
2011-09-21 09:19:06 +03:00
2011-09-21 09:19:06 +03:00
2011-09-11 15:02:16 +03:00
2011-09-11 15:02:14 +03:00
2011-09-21 09:19:06 +03:00
2011-09-11 15:28:59 +03:00