]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit36bb21604b324d09ce837e76ea64bfa01479942e
tree8b81b15237110ee30626057541e07b0ba8aa80bc
parentff6098fc26b174372eea8314a70aa18a9c137418
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