Message ID | alpine.DEB.2.22.394.2104041724340.2958@hadrien (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | iommu: dart: fix call_kern.cocci warnings | expand |
On Sun, Apr 4, 2021, at 17:26, Julia Lawall wrote: > From: kernel test robot <lkp@intel.com> > > Function apple_dart_attach_stream called on line 519 inside > lock on line 509 but uses GFP_KERNEL Thanks! Fixed for v3. Best, Sven
--- a/drivers/iommu/apple-dart-iommu.c +++ b/drivers/iommu/apple-dart-iommu.c @@ -435,7 +435,7 @@ static int apple_dart_attach_stream(stru goto error; } - stream = kzalloc(sizeof(*stream), GFP_KERNEL); + stream = kzalloc(sizeof(*stream), GFP_ATOMIC); if (!stream) { ret = -ENOMEM; goto error;