Home
last modified time | relevance | path

Searched hist:"317 b50b8" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/ata/
H A Dlibata-core.c317b50b8 Mon Oct 15 14:43:12 CDT 2007 Andrew Paprocki <andrew@ishiboo.com> libata: prevent devices with blank model names from being DMA blacklisted

The strn_pattern_cmp routine does not handle a blank name parameter
properly. The only patterns which should match a blank name are "*"
and an explicit "". If the function is passed a blank name in current
code, it will always match against the patt parameter. The bug manifests
itself as the device with the empty model name always matching the first
device in the DMA blacklist, forcing it to revert to PIO mode.

Signed-off-by: Andrew Paprocki <andrew@ishiboo.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>