Commit f2c6f180 authored by Committed by Christoph HellwigBrowse files
pm8001: Fix potential null pointer dereference and memory leak.
The pm8001_get_phy_settings_info() function does not check the kzalloc() return value and does not free the allocated memory. Signed-off-by: Maurizio Lombardi <firstname.lastname@example.org> Acked-by: Suresh Thiagarajan <Suresh.Thiagarajan@pmcs.com> Acked-by: Jack Wang <email@example.com> Signed-off-by: Christoph Hellwig <firstname.lastname@example.org>
Showing with 10 additions and 3 deletions