Introduce memory allocation return value check
Introduce memory allocation return value check

In pci_std_swizzle_irq_map(), check if the memory allocation
of interrupt-mask returns a valid pointer before using it.

Fixes Coverity defect#97854.

Signed-off-by: Kamalesh Babulal <30b3129b1a1b0120e30fdc2f7d8e6560be5d0735@linux.vnet.ibm.com>
Cc: Samuel Mendoza-Jonas <ce35fd21fe38dbd75c01124bec431654a5f8eea9@au1.ibm.com>
Cc: Gavin Shan <0398910e4f4970259b451f0f9d0686cc5e961b81@linux.vnet.ibm.com>
[ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.vnet.ibm.com: change to prerror() rather than prlog(DEBUG)]
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.vnet.ibm.com>

csmart/skiboot,apopple/skiboot,ddstreet/skiboot,open-power/skiboot,legoater/skiboot,ddstreet/skiboot,csmart/skiboot,open-power/skiboot,apopple/skiboot,qemu/skiboot,legoater/skiboot,shenki/skiboot,csmart/skiboot,open-power/skiboot,qemu/skiboot,legoater/skiboot,stewart-ibm/skiboot,mikey/skiboot,legoater/skiboot,mikey/skiboot,legoater/skiboot,stewart-ibm/skiboot,shenki/skiboot,qemu/skiboot,shenki/skiboot,shenki/skiboot,shenki/skiboot,stewart-ibm/skiboot,qemu/skiboot,open-power/skiboot,open-power/skiboot,qemu/skiboot,ddstreet/skiboot,mikey/skiboot,apopple/skiboot