nvme: Fix multipage prp-list
authorAlexander Sowarka <alexander.sowarka@gmail.com>
Sun, 28 Aug 2022 19:30:20 +0000 (21:30 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 15 Sep 2022 13:55:30 +0000 (09:55 -0400)
commit4ca8d95ce1e71995052e81f1854a23803ca48b73
tree7e58f52c635ff449dd12eb18f3197cb2d6ccf782
parent9895bda2ed09fe6b38f553022c263d5aa975cf99
nvme: Fix multipage prp-list

The nvme driver falsely assumed that the last entry on a page
of the prp-list always points to the next page of the prp-list.
This potentially can lead to the illegal creation of pages on
the prp-list with only a single entry. This change now ensures
that splitting the prp-list into multiple pages, behaves now as
required by the NVME-Spec.

Related to this, also the size of the memory allocation is adjusted
accordingly.

Signed-off-by: Alexander Sowarka <alexander.sowarka@aerq.com>
drivers/nvme/nvme.c