From: Jes Sorensen Date: Tue, 16 Jun 2015 13:13:33 +0000 (-0400) Subject: staging: unisys: visorchannel_write() fix potential memory corruption X-Git-Tag: omap-for-v4.3/legacy-v2-signed~121^2~115 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56df900cb44d18c3ffaf16e09b83aaf37d912cc5;p=pandora-kernel.git staging: unisys: visorchannel_write() fix potential memory corruption This fixes the memory corruption case, if nbytes is less than offset and sizeof(struct channel_header) Reported-by: Dan Carpenter Signed-off-by: Jes Sorensen Signed-off-by: Benjamin Romer Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed