s3c24x0/serial.c read and write buffer pointer check

Signed-off-by: wangfei <wolflouiswang@gmail.com>