PCI: fix typo in pci_save_pcix_state

pci_save/store_state has multiple bugs, which will cause cap can't be
saved/restored correctly. Below 3 patches fix them.


fix the typo in pci_save_pcix_state

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Shaohua Li and committed by
Greg Kroah-Hartman
f34303de 9ed88554

+1 -1
+1 -1
drivers/pci/pci.c
··· 620 if (pos <= 0) 621 return 0; 622 623 - save_state = pci_find_saved_cap(dev, PCI_CAP_ID_EXP); 624 if (!save_state) 625 save_state = kzalloc(sizeof(*save_state) + sizeof(u16), GFP_KERNEL); 626 if (!save_state) {
··· 620 if (pos <= 0) 621 return 0; 622 623 + save_state = pci_find_saved_cap(dev, PCI_CAP_ID_PCIX); 624 if (!save_state) 625 save_state = kzalloc(sizeof(*save_state) + sizeof(u16), GFP_KERNEL); 626 if (!save_state) {