fix: efi vars reading crashes

This commit is contained in:
Adam Stephens 2024-02-07 09:39:52 -05:00
parent 66bc91c89d
commit 08af694944
No known key found for this signature in database

View file

@ -15,7 +15,21 @@ let
src = sources.linux; src = sources.linux;
kernelPatches = args.kernelPatches or [ ]; kernelPatches = (args.kernelPatches or [ ]) ++ [
{
# fix resets when reading EFI vars
name = "qcom-shm-bridge-tz";
patch = (
pkgs.fetchurl {
url = "https://lore.kernel.org/lkml/20240205182810.58382-1-brgl@bgdev.pl/t.mbox.gz";
hash = "sha256-apwfO/bhVd8jzsHpOPFQXshzdwfg5Zcelf2vCDtlCtI=";
}
);
extraStructuredConfig = {
QCOM_TZMEM_MODE_SHMBRIDGE = lib.kernel.yes;
};
}
];
extraMeta.branch = lib.versions.majorMinor version; extraMeta.branch = lib.versions.majorMinor version;
} }
); );