diff options
author | Jiri Pirko <jiri@mellanox.com> | 2019-02-14 15:39:07 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-14 18:41:54 +0100 |
commit | fa8ba2cba7f9c75b84f82d174658d959d25d4561 (patch) | |
tree | 8518fc3aa981b96dad1c2b4a2060da0075819820 /certs | |
parent | Merge branch 'cxgb4-SGE-doorbell-queue-timer' (diff) | |
download | linux-fa8ba2cba7f9c75b84f82d174658d959d25d4561.tar.xz linux-fa8ba2cba7f9c75b84f82d174658d959d25d4561.zip |
lib: objagg: fix handling of object with 0 users when assembling hints
It is possible that there might be an originally parent object with 0
direct users that is in hints no longer considered as parent. Then the
weight of this object is 0 and current code ignores him. That's why the
total amount of hint objects might be lower than for the original
objagg and WARN_ON is hit. Fix this be considering 0 weight valid.
Fixes: 9069a3817d82 ("lib: objagg: implement optimization hints assembly and use hints for object creation")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions