Patch kernel to 3.4.40

Change-Id: I708f5e8a41a314ac8f41651a7d92f697b682aebb