diff options
author | Jonathan Lemon <jonathan.lemon@gmail.com> | 2021-08-17 00:13:34 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-08-17 02:18:35 +0200 |
commit | 7c8075728f4df477d94df2e4d23a95ee69ee9493 (patch) | |
tree | 2e1a22f786c66024a9d64cf1d5ff28e205e506aa /samples/kmemleak | |
parent | Merge branch 'net-hns3-add-support-ethtool-extended-link-state' (diff) | |
download | linux-7c8075728f4df477d94df2e4d23a95ee69ee9493.tar.xz linux-7c8075728f4df477d94df2e4d23a95ee69ee9493.zip |
ptp: ocp: Fix uninitialized variable warning spotted by clang.
If attempting to flash the firmware with a blob of size 0,
the entire write loop is skipped and the uninitialized err
is returned. Fix by setting to 0 first.
Fixes: 773bda964921 ("ptp: ocp: Expose various resources on the timecard.")
Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'samples/kmemleak')
0 files changed, 0 insertions, 0 deletions