[PATCH] UBI: fix errorhandling in ioctl
Alexander Schmidt
alexs at linux.vnet.ibm.com
Mon Dec 18 07:57:35 EST 2006
Hi,
the double declaration of "int err" makes the ioctl() for resizing volumes
always return 0, even if errors occured during the resizing procedure.
I hope the patch applies this time, i double checked it...
Kind regards,
Alexander Schmidt
Signed-off-by: Alexander Schmidt, <alexs at linux.vnet.ibm.com>
---
diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c
index 469cc47..be304dc 100644
--- a/drivers/mtd/ubi/cdev.c
+++ b/drivers/mtd/ubi/cdev.c
@@ -824,7 +824,7 @@ out_free:
/* Re-size volume command */
case UBI_IOCRSVOL:
{
- int err, rem, pebs;
+ int rem, pebs;
uint64_t tmp;
const struct ubi_vtbl_vtr *vtr;
struct ubi_rsvol_req req;
More information about the linux-mtd
mailing list