[PATCH] [JFFS2] Fix csize integer overflow issue due to truncation

Victor Gallardo vgallardo at amcc.com
Sun Sep 20 01:57:52 EDT 2009


Hi David,

I don't have access to a system till Monday. I'll give it a try then.

Overall the patch looks good to me, except this line.

> +#define tn_overlapped(tn)	(!!(((tn)->__csize) & TN_OVERLAP))

Should just be this.

#define tn_overlapped(tn)	((tn)->__csize) & TN_OVERLAP)

Best Regards,

Victor Gallardo



More information about the linux-mtd mailing list