Jia-Ju Bai 9ad607b4a9 e100: Add a check after pci_pool_create to avoid null pointer dereference
The driver lacks the check of nic->cbs_pool after pci_pool_create
in e100_probe. When this function is failed, a null pointer dereference
occurs when pci_pool_alloc uses nic->cbs_pool in e100_alloc_cbs.
This patch adds a check and related error handling code to fix it.

Signed-off-by: Jia-Ju Bai <baijiaju1990@163.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2015-08-18 14:06:05 -07:00
..
2015-08-13 21:12:17 -07:00
2015-08-12 14:44:16 -07:00
2015-07-08 16:00:09 -07:00
2015-08-13 22:43:22 -07:00
2015-08-13 22:43:22 -07:00
2015-08-13 22:43:22 -07:00