> Looks good, how about make it const? Ok. > Why we compare it with character pointer? just use memcmp Ok, thanks I'll send updated patch. We've tested it with our device - works like a charm. May you please try it on NAND and confirm it is OK? -- Best regards, Artem Bityutskiy (Битюцкий Артём)