aboutsummaryrefslogtreecommitdiff
path: root/docs/devel/secure-coding-practices.rst
diff options
context:
space:
mode:
authorMinwoo Im <minwoo.im.dev@gmail.com>2021-01-15 21:19:20 +0900
committerKlaus Jensen <k.jensen@samsung.com>2021-02-08 21:15:54 +0100
commit044f1876b0b00a970e65b99d9be21925cdd7dc6b (patch)
tree5cd61f6e8902a8f497a39670565de5fd84d7062d /docs/devel/secure-coding-practices.rst
parent38001f73403808dde35c523695ee895587bcc6ba (diff)
downloadqemu-044f1876b0b00a970e65b99d9be21925cdd7dc6b.zip
qemu-044f1876b0b00a970e65b99d9be21925cdd7dc6b.tar.gz
qemu-044f1876b0b00a970e65b99d9be21925cdd7dc6b.tar.bz2
hw/block/nvme: error if drive less than a zone size
If a user assigns a backing device with less capacity than the size of a single zone, the namespace capacity will be reported as zero and the kernel will silently fail to allocate the namespace. This patch errors out in case that the backing device cannot accomodate at least a single zone. Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com> [k.jensen: small fixup in the error and commit message] Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'docs/devel/secure-coding-practices.rst')
0 files changed, 0 insertions, 0 deletions