From: Karlis Ogsts Date: Mon, 22 Jul 2013 20:51:42 +0000 (-0700) Subject: staging: android: logger: Correct write offset reset on error X-Git-Tag: v3.11-rc3~11^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72bb99cfe9c57d2044445fb34bbc95b4c0bae6f2;p=pandora-kernel.git staging: android: logger: Correct write offset reset on error In the situation that a writer fails to copy data from userspace it will reset the write offset to the value it had before it went to sleep. This discarding any messages written while aquiring the mutex. Therefore the reset offset needs to be retrieved after acquiring the mutex. Cc: Android Kernel Team Signed-off-by: Bjorn Andersson Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed