From: Ian Abbott Date: Tue, 21 Jan 2014 17:39:05 +0000 (+0000) Subject: staging: comedi: usbduxsigma: fix unaligned dereferences X-Git-Tag: v3.14-rc3~12^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=791771e4e0587652e193ac8920e14911045a1dc8;p=pandora-kernel.git staging: comedi: usbduxsigma: fix unaligned dereferences There are a couple of dereferences such as `*(uint32_t *)(devpriv->insn_buf + 1)` that are unaligned as `devpriv->insn_buf` is of type `uint8_t *`. This works on x86 architecture but may not be supported on other architectures. Call `get_unalign()` to perform the unaligned dereferences. Signed-off-by: Ian Abbott Cc: Bernd Porr Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed