]> git.baikalelectronics.ru Git - kernel.git/commit
staging: tidspbridge: replace strict_strtol() with kstrtos32()
authorJingoo Han <jg1.han@samsung.com>
Wed, 24 Jul 2013 05:34:08 +0000 (14:34 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jul 2013 16:51:18 +0000 (09:51 -0700)
commitee5e32c6ca62429d0d8cd4c6ec6e3f21cd964272
treeb2ed564b9fbf3bfd84579dc94d88761a201c7372
parent7f4aef71ede671afc477c190ed6aaca1c3fc5949
staging: tidspbridge: replace strict_strtol() with kstrtos32()

The usage of strict_strtol() is not preferred, because
strict_strtol() is obsolete. Thus, kstrtos32() should be
used in order to convert a string to s32. Also, error handling
is added to get rid of a __must_check warning.

This fixes a memory corruption bug as well.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/tidspbridge/pmgr/dbll.c