UBI io.c self_check_peb_vid_hdr().

Bill Pringlemeir bpringlemeir at nbsps.com
Mon Sep 9 11:16:27 EDT 2013


This routine has,

static int self_check_peb_vid_hdr(const struct ubi_device *ubi, int pnum)
{
	int err;
	uint32_t crc, hdr_crc;
	struct ubi_vid_hdr *vid_hdr;
	void *p;
...
	crc = crc32(UBI_CRC32_INIT, vid_hdr, UBI_EC_HDR_SIZE_CRC);
                                                ^^^^

Shouldn't it be,

	crc = crc32(UBI_CRC32_INIT, vid_hdr, UBI_VID_HDR_SIZE_CRC);
                                                ^^^^^

Or are the structures assumed to be the same size?

Tia,
Bill Pringlemeir.




More information about the linux-mtd mailing list