linux-mainline-3.8: Fix random segfaults and boot issues seen with gcc-4.8

These are backports from 3.9, tested boot on beaglebone

Signed-off-by: Khem Raj <raj.khem@gmail.com>