diff options
author | Chengguang Xu <cgxu519@gmx.com> | 2018-06-26 09:16:31 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-08-24 13:09:07 +0200 |
commit | 778bce908b84b7d59d09ed0b9efca4de0edfc2c2 (patch) | |
tree | 90f8f5f1f9b98157faeeb927cccb0ba01fe8681e /tools | |
parent | a5b6bb86cc128b8bbcdd8fdccd2567c09bdc0ac4 (diff) | |
download | linux-rt-778bce908b84b7d59d09ed0b9efca4de0edfc2c2.tar.gz |
nfp: cast sizeof() to int when comparing with error code
[ Upstream commit 2d2595719a97c876f35b1e60e5768e58753b268c ]
sizeof() will return unsigned value so in the error check
negative error code will be always larger than sizeof().
Fixes: a0d8e02c35ff ("nfp: add support for reading nffw info")
Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.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>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions