Re: [PATCH v2] crypto: omap-sham: Add the offset of sg page to vaddr

2015-04-03 Thread Herbert Xu
On Thu, Apr 02, 2015 at 03:32:45PM +0530, Lokesh Vutla wrote: kmap_atomic() gives only the page address of the input page. Driver should take care of adding the offset of the scatterlist within the page to the returned page address. omap-sham driver is not adding the offset to page and

[PATCH v2] crypto: omap-sham: Add the offset of sg page to vaddr

2015-04-02 Thread Lokesh Vutla
kmap_atomic() gives only the page address of the input page. Driver should take care of adding the offset of the scatterlist within the page to the returned page address. omap-sham driver is not adding the offset to page and directly operates on the return vale of kmap_atomic(), because of which