]> git.ipfire.org Git - thirdparty/u-boot.git/commit
nvme: apple: Check memalign return value
authorFrancois Berder <fberder@outlook.fr>
Sat, 9 May 2026 20:13:31 +0000 (22:13 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Wed, 20 May 2026 07:44:37 +0000 (09:44 +0200)
commit63f0f19803ee28a3612dfbef719ae7bac5143eef
tree7efc32c9f688b5a800fc43f1fcf472c6f2993610
parentd6eb327828a384c3bf325de05633a77f66688f53
nvme: apple: Check memalign return value

memalign returns NULL if it fails.
This commit ensures that we handle this failure before
filling the buffer with 0s.

Signed-off-by: Francois Berder <fberder@outlook.fr>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patch.msgid.link/BESP194MB280542535B098A33C8A815EEDA3A2@BESP194MB2805.EURP194.PROD.OUTLOOK.COM
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
drivers/nvme/nvme_apple.c