]> git.karo-electronics.de Git - karo-tx-linux.git/commit
libata: acpi: avoid passing NULL to ACPI evaluation method
authorAaron Lu <aaron.lu@intel.com>
Fri, 14 Mar 2014 05:46:09 +0000 (13:46 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:17:21 +0000 (21:17 -0600)
commit854d887a5cc2b2d3778c44df661453345f42dac7
treedfb46082628341bab7568204af2f884e2c868401
parenta8bd33929263793595f0e4661a3eb2a877205b3e
libata: acpi: avoid passing NULL to ACPI evaluation method

If ACPI handle for an ATA device is NULL, we shouldn't call
ata_dev_get_GTF as that function will use handle to do some ACPI
evaluation.

Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
(cherry picked from commit c75da205e02dda3b79ca057e558f97f3d61c855d)
drivers/ata/libata-acpi.c