aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2017-01-21 07:49:49 +0300
committerBjorn Helgaas <[email protected]>2017-01-30 18:17:05 -0600
commit1ded56df3247d358390ae6dc09ccee620262ac5f (patch)
tree45599518271ae46367189f458763127c5ba2b969 /lib/netdev-notifier-error-inject.c
parent7ce7d89f48834cefece7804d38fc5d85382edf77 (diff)
PCI: xgene: Fix double free on init error
The "port" variable was allocated with devm_kzalloc() so if we free it with kfree() it will be freed twice. Also I changed it to propogate the error from devm_ioremap_resource() instead of returning -ENOMEM. Fixes: c5d460396100 ("PCI: Add MCFG quirks for X-Gene host controller") Also-posted-by: Shawn Lin <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Acked-by: Tanmay Inamdar <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions