From: Arnd Bergmann Date: Fri, 9 Mar 2007 23:05:35 +0000 (+0100) Subject: [POWERPC] spufs: fix possible memory corruption is spufs_mem_write X-Git-Tag: v2.6.21-rc4~41^2~3^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa0ed2bdb663608d5e409faecff3e1e81a3d413a;p=pandora-kernel.git [POWERPC] spufs: fix possible memory corruption is spufs_mem_write Due to a buggy unsigned comparison, it was possible to write beyond the end of the local store file in spufs under some circumstances. This rewrites the buggy function to look more like simple_copy_from_buffer. Signed-off-by: Arnd Bergmann Cc: Ulrich Weigand --- Reading git-diff-tree failed