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-spi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html