Message ID | 20200825235854.1588034-3-ranjani.sridharan@linux.intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | e9157a449aa3f72fdbded9ce780c666bf0951cf3 |
Headers | show |
Series | SOF FW loader fixes and updates | expand |
diff --git a/sound/soc/sof/loader.c b/sound/soc/sof/loader.c index 25dc28ebafb7..42e0e3e58869 100644 --- a/sound/soc/sof/loader.c +++ b/sound/soc/sof/loader.c @@ -33,7 +33,8 @@ static int get_ext_windows(struct snd_sof_dev *sdev, } /* keep a local copy of the data */ - sdev->info_window = kmemdup(w, ext_hdr->hdr.size, GFP_KERNEL); + sdev->info_window = devm_kmemdup(sdev->dev, w, ext_hdr->hdr.size, + GFP_KERNEL); if (!sdev->info_window) return -ENOMEM;