From: Greg Kroah-Hartman Date: Thu, 13 Feb 2014 17:47:20 +0000 (-0700) Subject: PCI/MSI: Check kmalloc() return value, fix leak of name X-Git-Tag: v3.14-rc4~20^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86bb4f697a964ab5e50f1159e04c6a5d5acde2d4;p=pandora-kernel.git PCI/MSI: Check kmalloc() return value, fix leak of name Coverity reported that I forgot to check the return value of kmalloc() when creating the MSI attribute name, so fix that up and properly free it if there is an error when allocating the msi_dev_attr variable. Found by Coverity (CID 1163315 and 1163316). Fixes: 1c51b50c2995 ("PCI/MSI: Export MSI mode using attributes, not kobjects") Signed-off-by: Greg Kroah-Hartman Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed