]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r258387,r258425
authorgber <gber@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 25 Nov 2013 15:34:57 +0000 (15:34 +0000)
committergber <gber@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 25 Nov 2013 15:34:57 +0000 (15:34 +0000)
commitc30ba8873b9340e0c3fcc406eed52db8e159d946
treeaa2f7909c0a238ef2125736cc736f59e3892db96
parentaeaa62c9cb6572cbf2a906d804781d479008c344
MFC: r258387,r258425
Split raw reading/programming into smaller chunks to avoid allocating too
big chunk of kernel memory. Validate size of data. Add error handling to
avoid calling copyout() when data has not been read correctly. Also MFC of
change r258425 which fixes problem introduced by r258387.

Reviewed by:    zbb
Reported by:    x90c <geinblues@gmail.com>
Approved by:    re

git-svn-id: svn://svn.freebsd.org/base/stable/10@258554 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/nand/nand_cdev.c
sys/dev/nand/nand_geom.c