K 10 svn:author V 4 gber K 8 svn:date V 27 2013-11-25T15:34:57.898023Z K 7 svn:log V 384 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 Approved by: re END