Dan Carpenter 6c810f9014 mtg: docg3: potential divide by zero in doc_write_oob()
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@oracle.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
2012-12-10 15:28:49 +02:00
..
2012-11-22 12:07:03 +02:00
2012-11-22 12:07:03 +02:00
2012-03-27 00:56:46 +01:00
2012-03-27 00:56:46 +01:00
2008-06-04 17:50:17 +01:00
2012-03-30 17:31:56 -07:00
2012-11-22 12:07:03 +02:00
2012-11-22 12:07:03 +02:00