pata_legacy: fix a couple uninitialized variable bugs
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 6 Oct 2021 07:34:19 +0000 (10:34 +0300)
committerDamien Le Moal <damien.lemoal@wdc.com>
Tue, 12 Oct 2021 00:52:35 +0000 (09:52 +0900)
commit013923477cb311293df9079332cf8b806ed0e6f2
treec53c623350d81b8d0d4bb18682b18fa95d328a4d
parent64570fbc14f8d7cb3fe3995f20e26bc25ce4b2cc
pata_legacy: fix a couple uninitialized variable bugs

The last byte of "pad" is used without being initialized.

Fixes: 55dba3120fbc ("libata: update ->data_xfer hook for ATAPI")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
drivers/ata/pata_legacy.c