s5pc110 lcd: add safety checks (whether it's malloc'd or not)