Kernel camera fix.

Original credit: agrabren

Change-Id: I7be90bf3442245e022d8d18d37174e1ad17467dc