Searched hist:"60658 e0d" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/lib/ |
H A D | sbitmap.c | 60658e0d Mon Sep 19 08:34:08 CDT 2016 Colin Ian King <colin.king@canonical.com> sbitmap: initialize weight to zero
Variable weight is not being initialized to zero before it is used to compute the weight sum. Ensure it is initialized to zero.
Found with static analysis with cppcheck: [lib/sbitmap.c:177]: (error) Uninitialized variable: weight
Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Jens Axboe <axboe@fb.com> 60658e0d Mon Sep 19 08:34:08 CDT 2016 Colin Ian King <colin.king@canonical.com> sbitmap: initialize weight to zero Variable weight is not being initialized to zero before it is used to compute the weight sum. Ensure it is initialized to zero. Found with static analysis with cppcheck: [lib/sbitmap.c:177]: (error) Uninitialized variable: weight Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Jens Axboe <axboe@fb.com>
|