libata: use ata_id_c_string()
authorTejun Heo <htejun@gmail.com>
Tue, 2 Jan 2007 11:19:40 +0000 (20:19 +0900)
committerJeff Garzik <jeff@garzik.org>
Fri, 9 Feb 2007 22:39:30 +0000 (17:39 -0500)
commit8bfa79fcb81d2bdb043f60ab4171704467808b55
tree8b81b15237110ee30626057541e07b0ba8aa80bc
parenta0cf733b333eeeafb7324e2897448006c693c26c
libata: use ata_id_c_string()

There were several places where ATA ID strings are manually terminated
and in some places possibly unterminated strings were passed to string
functions which don't limit length like strstr().  This patch converts
all of them over to ata_id_c_string().

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c
drivers/ata/pata_ali.c
drivers/ata/pata_hpt366.c
drivers/ata/pata_hpt37x.c
drivers/ata/pata_it821x.c
drivers/ata/pata_serverworks.c