fixed kernel panic on x86_64 kernel

This patch should fix kernel panic on x86_64 kernel. Tested with x64 kernel 3.12 and 3.16, both ok, no kernel panic.