Re: [PATCH] spi: fsl-dspi: Remove possible memory leak of 'chip'

From: Dan Carpenter
Date: Sat Jan 31 2015 - 11:47:06 EST


On Sat, Jan 31, 2015 at 10:03:25PM +0530, Bhuvanchandra DV wrote:
> Move the check for spi->bits_per_word
> before allocation, to avoid memory leak.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

Normally, you would give me a Reported-by: tag. Not a big deal either
way.

> Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@xxxxxxxxxxx>

regards,
dan carpenter

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/