]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: Compare to size_new in case of resource child validation
authorArkadi Sharshevsky <arkadis@mellanox.com>
Mon, 26 Feb 2018 09:59:53 +0000 (10:59 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Feb 2018 15:53:02 +0000 (10:53 -0500)
commit769db95f4e3d17eea1ae5143cc0b5121ee30d691
tree248a68b02965c1a0772c56e522bab9e24f6e4342
parente5e2e26749d16308d14195c7dae19d9834e5757f
devlink: Compare to size_new in case of resource child validation

The current implementation checks the combined size of the children with
the 'size' of the parent. The correct behavior is to check the combined
size vs the pending change and to compare vs the 'size_new'.

Fixes: 6de8841aed26 ("devlink: Add support for resource abstraction")
Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com>
Tested-by: Yuval Mintz <yuvalm@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c