mtd: lpddr: Fix a double free in probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 28 Feb 2020 09:25:54 +0000 (12:25 +0300)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 11 Mar 2020 13:49:30 +0000 (14:49 +0100)
commit4da0ea71ea934af18db4c63396ba2af1a679ef02
tree8a186d9293e335cd6f25240e30a46d96e37aa0c2
parentc0b66dce0ca8e628c73f673f368230a455ea6631
mtd: lpddr: Fix a double free in probe()

This function is only called from lpddr_probe().  We free "lpddr" both
here and in the caller, so it's a double free.  The best place to free
"lpddr" is in lpddr_probe() so let's delete this one.

Fixes: 8dc004395d5e ("[MTD] LPDDR qinfo probing.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200228092554.o57igp3nqhyvf66t@kili.mountain
drivers/mtd/lpddr/lpddr_cmds.c