diff options
author | Andrew Paprocki <andrew@ishiboo.com> | 2007-10-15 15:43:12 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-10-15 15:44:22 -0400 |
commit | 317b50b8ad2f544a12c8f29d99a91225e8c5db1d (patch) | |
tree | 43af04f1f7eedd4dca63ad401c4ca65bc4247d5c /drivers/mtd/mtdcore.c | |
parent | 8f73a6880183dd11b97d70e738cf82d15931d98b (diff) |
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>
Diffstat (limited to 'drivers/mtd/mtdcore.c')
0 files changed, 0 insertions, 0 deletions