]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: don't call flush_dcache_page() with an invalid pointer
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 31 Mar 2008 21:02:02 +0000 (17:02 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 9 Apr 2008 01:06:50 +0000 (21:06 -0400)
commitaafb4121b2b3d9d8a0b1e331c26deb105541fa83
tree1c228b639571866d492e7ab8d5b843e41a955970
parentbc60c884c65b10b8c179ecf6fa388715d7cc5896
SUNRPC: don't call flush_dcache_page() with an invalid pointer

Fix a problem in _copy_to_pages(), whereby it may call flush_dcache_page()
with an invalid pointer due to the fact that 'pgto' gets incremented
beyond the end of the page array. Fix is to exit the loop without this
unnecessary increment of pgto.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/xdr.c