Merge branch 'for-linus' of git://git.infradead.org/~dedekind/ubi-2.6

* 'for-linus' of git://git.infradead.org/~dedekind/ubi-2.6:
UBI: mtd/ubi/vtbl.c: fix memory leak
UBI: fix sparse errors in ubi.h
UBI: fix error message
UBI: silence warning

+11 -8
+2 -2
drivers/mtd/ubi/build.c
··· 1000 1000 mutex_unlock(&ubi_devices_mutex); 1001 1001 if (err < 0) { 1002 1002 put_mtd_device(mtd); 1003 - printk(KERN_ERR "UBI error: cannot attach %s\n", 1004 - p->name); 1003 + printk(KERN_ERR "UBI error: cannot attach mtd%d\n", 1004 + mtd->index); 1005 1005 goto out_detach; 1006 1006 } 1007 1007 }
+5 -5
drivers/mtd/ubi/ubi.h
··· 217 217 void *upd_buf; 218 218 219 219 int *eba_tbl; 220 - int checked:1; 221 - int corrupted:1; 222 - int upd_marker:1; 223 - int updating:1; 224 - int changing_leb:1; 220 + unsigned int checked:1; 221 + unsigned int corrupted:1; 222 + unsigned int upd_marker:1; 223 + unsigned int updating:1; 224 + unsigned int changing_leb:1; 225 225 226 226 #ifdef CONFIG_MTD_UBI_GLUEBI 227 227 /*
+3 -1
drivers/mtd/ubi/vmt.c
··· 376 376 get_device(&vol->dev); 377 377 volume_sysfs_close(vol); 378 378 out_gluebi: 379 - ubi_destroy_gluebi(vol); 379 + if (ubi_destroy_gluebi(vol)) 380 + dbg_err("cannot destroy gluebi for volume %d:%d", 381 + ubi->ubi_num, vol_id); 380 382 out_cdev: 381 383 cdev_del(&vol->cdev); 382 384 out_mapping:
+1
drivers/mtd/ubi/vtbl.c
··· 519 519 if (ubi->autoresize_vol_id != -1) { 520 520 ubi_err("more then one auto-resize volume (%d " 521 521 "and %d)", ubi->autoresize_vol_id, i); 522 + kfree(vol); 522 523 return -EINVAL; 523 524 } 524 525