extcon: Add exception handling to prevent the NULL pointer access
authorChanwoo Choi <cw00.choi@samsung.com>
Sun, 21 Jun 2015 14:48:36 +0000 (23:48 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 10 Aug 2015 02:48:56 +0000 (11:48 +0900)
commit7eae43aeab27e8f65c0a2e31567fafcfc7aa4649
tree7dba14ecdb9dbd6a81b7f5dfcce52dbe589a096e
parent0ffe8cbd51dafa5ad6686435bb1bd0afdd2b006b
extcon: Add exception handling to prevent the NULL pointer access

This patch check whether argument is NULL to prevent NULL pointer access.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon.c