serial: samsung: protect NULL dereference of clock name
authorKeyYoung Park <keyyoung.park@samsung.com>
Wed, 30 May 2012 08:29:55 +0000 (17:29 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jun 2012 22:32:18 +0000 (15:32 -0700)
commit7b15e1d9e342aca6c65f4824f1957f5245fcd87a
tree43f00f2aebac23208ab21135aed99cc48cba369f
parent25f04ad423e5eb40c33a904db5a0d2c7e3bf08f5
serial: samsung: protect NULL dereference of clock name

When priting the serial clock source, if clock source name is null,
kernel reference NULL point.

Signed-off-by: KeyYoung Park <keyyoung.park@samsung.com>
Signed-off-by: Huisung Kang <hs1218.kang@samsung.com>
Signed-off-by: Kyoungil Kim <ki0351.kim@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung.c