Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Oct 2014 16:59:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 194228] New: Looks like longstanding cut & paste error in nand_generic.c
Message-ID:  <bug-194228-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194228

            Bug ID: 194228
           Summary: Looks like longstanding cut & paste error in
                    nand_generic.c
           Product: Base System
           Version: 10.1-BETA2
          Hardware: arm
                OS: Any
            Status: Needs Triage
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: dhorwitt@cox.net

FBSDID("$FreeBSD: stable/10/sys/dev/nand/nand_generic.c 259371 2013-12-14
00:54:05Z ian $");
10.1-BETA2 from 20140925

Line 395:
chip_params->spare_bytes_per_page = le32dec(&params.spare_bytes_per_page);

should be
chip_params->spare_bytes_per_page = le16dec(&params.spare_bytes_per_page);

On my AT91SAM9G20-based system (EMAC SOM-9G20M, 64 MB SDRAM) onfi_is_blk_bad()
hung trying to malloc 0x20000040 bytes instead of 0x40.


Thanks; FBSD rocks!

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-194228-8>