From: SUGIOKA Toshinobu Date: Wed, 21 Jan 2009 00:42:10 +0000 (+0900) Subject: sh: fix unaligned and nonexistent address handling X-Git-Tag: v2.6.29-rc3~35^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2afb447f33c29cb000a494396559f8005d3e33c1;p=pandora-kernel.git sh: fix unaligned and nonexistent address handling unaligned and nonexistent address causes wrong exception handling in traps_32.c(handle_unaligned_access). 'handle_unalinged_ins' should return -EFAULT if address error is fixed up with kernel exception table, otherwise 'handle_unaligned_access' increases already fixed program counter and then crash. for example ioctl(fd, TCGETA, (struct termio *)-1) never return and stay in TASK_UNINTERRUPTIBLE state forever in my kernel. Signed-off-by: SUGIOKA Toshinobu Signed-off-by: Paul Mundt --- Reading git-diff-tree failed