Re: [PATCH RESEND 1/2] mtd: bcm47: convert kzalloc to avoid invalid access

From: RafaÅ MiÅecki
Date: Fri May 31 2013 - 03:57:33 EST


2013/5/30 Libo Chen <clbchenlibo.chen@xxxxxxxxxx>:
> mtd is just member of bcm47xxsflash, so we should free bcm47xxsflash not its member.
> So I use devm_kazlloc instead of kazlloc to avoid it.

I think you should use
mtd: bcm47xxsflash:
prefix for both patches, but Artem or David may want to comment on that.

Nice trick with that devm_kzalloc, I didn't know it.

--
RafaÅ
--
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/