summaryrefslogtreecommitdiffstats
path: root/certs
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2019-02-14 15:39:07 +0100
committerDavid S. Miller <davem@davemloft.net>2019-02-14 18:41:54 +0100
commitfa8ba2cba7f9c75b84f82d174658d959d25d4561 (patch)
tree8518fc3aa981b96dad1c2b4a2060da0075819820 /certs
parentMerge branch 'cxgb4-SGE-doorbell-queue-timer' (diff)
downloadlinux-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