atm: zatm: fix memcmp casting
commit5331fcb28e2efca5733763da2e84d94a7c72d0f9
authorIvan Bornyakov <brnkv.i1@gmail.com>
Fri, 25 May 2018 17:49:52 +0000 (25 20:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Jul 2018 13:42:24 +0000 (11 15:42 +0200)
tree95cf1232692934ab9d01b570ebf785f2fd2126a4
parentf81f7e53d33248772d4cd121662c27b2ac038da3
atm: zatm: fix memcmp casting

[ Upstream commit f9c6442a8f0b1dde9e755eb4ff6fa22bcce4eabc ]

memcmp() returns int, but eprom_try_esi() cast it to unsigned char. One
can lose significant bits and get 0 from non-0 value returned by the
memcmp().

Signed-off-by: Ivan Bornyakov <brnkv.i1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/atm/zatm.c