public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* UBI io.c self_check_peb_vid_hdr().
@ 2013-09-09 15:16 Bill Pringlemeir
  0 siblings, 0 replies; only message in thread
From: Bill Pringlemeir @ 2013-09-09 15:16 UTC (permalink / raw)
  To: linux-mtd


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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-09 15:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-09 15:16 UBI io.c self_check_peb_vid_hdr() Bill Pringlemeir

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox