diff options
author | Marcel Apfelbaum <marcel@redhat.com> | 2018-01-08 23:50:07 +0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2018-01-19 11:18:51 -0200 |
commit | d6b6abc51dda79a97f2c7bd6652c1940c068f1ec (patch) | |
tree | bbd0e7a39efd262c9196edea6d75a88d47557d8a /docs/pci_expander_bridge.txt | |
parent | d342eb7662bcfe47c26615b67025ae59a383489d (diff) |
fw_cfg: fix memory corruption when all fw_cfg slots are used
When all the fw_cfg slots are used, a write is made outside the
bounds of the fw_cfg files array as part of the sort algorithm.
Fix it by avoiding an unnecessary array element move.
Fix also an assert while at it.
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Message-Id: <20180108215007.46471-1-marcel@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'docs/pci_expander_bridge.txt')
0 files changed, 0 insertions, 0 deletions