[patch] mtg: docg3: potential divide by zero in doc_write_oob()
Artem Bityutskiy
artem.bityutskiy at linux.intel.com
Mon Dec 10 08:28:58 EST 2012
On Thu, 2012-11-29 at 17:16 +0300, Dan Carpenter wrote:
> If we set oobdelta to zero then we will either return -EINVAL or hit
> a divide (modulus) by zero on the next line when we check
> "(ooblen % oobdelta)". It's better to just return -EINVAL here instead.
>
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
Pushed to l2-mtd.git, thanks!
--
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20121210/c80d56e1/attachment.sig>
More information about the linux-mtd
mailing list