libata: Check log page directory before accessing pages
authorHannes Reinecke <hare@suse.de>
Mon, 25 Apr 2016 10:45:48 +0000 (12:45 +0200)
committerTejun Heo <tj@kernel.org>
Mon, 9 May 2016 16:36:45 +0000 (12:36 -0400)
commitfe5af0cc3029d52e31d282f5d53787d308e9695a
treead819b31fe6a124e3022d28ac915a63263db2f7e
parent5c65d8bb3503beb12864895426a69269c19e6e87
libata: Check log page directory before accessing pages

When reading the NCQ Send/Recv log it might actually not
supported, thereby causing irritating messages
'READ LOG DMA EXT failed'.
Instead we should be reading the log directory first to
figure out if the log is actually supported before trying
to access it.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-core.c
include/linux/ata.h