s3c24x0/serial.c read and write buffer pointer check

Signed-off-by: visitor83 <peter.uboot@gmail.com>