Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

libata: Initialize qc->pad_len

Initialize qc->pad_len for each new command. This ensures
that pad_len is not set to a stale value for zero data
length commands.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

authored by

Brian King and committed by
Jeff Garzik
d0f29485 7a801184

+1
+1
include/linux/libata.h
··· 1151 1151 qc->nbytes = qc->curbytes = 0; 1152 1152 qc->n_elem = 0; 1153 1153 qc->err_mask = 0; 1154 + qc->pad_len = 0; 1154 1155 1155 1156 ata_tf_init(qc->dev, &qc->tf); 1156 1157