From: Jingoo Han Date: Wed, 17 Jun 2015 15:12:27 +0000 (+0900) Subject: of/address: use atomic allocation in pci_register_io_range() X-Git-Tag: omap-for-v4.2/fixes-rc1^2~48^2~2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=294240ffe784e951dc2ef070da04fa31ef6db3a0;p=pandora-kernel.git of/address: use atomic allocation in pci_register_io_range() When kzalloc() is called under spin_lock(), GFP_ATOMIC should be used to avoid sleeping allocation. The call tree is: of_pci_range_to_resource() --> pci_register_io_range() <-- takes spin_lock(&io_range_lock); --> kzalloc() Signed-off-by: Jingoo Han Cc: stable@vger.kernel.org # 3.18+ Signed-off-by: Rob Herring --- Reading git-diff-tree failed