Skip to content

Commit 476d9ff

Browse files
committed
Merge branch 'for-4.17-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata
Pull libata fixes from Tejun Heo: "These two are fixes which missed v4.17. One is to remove an incorrect power management blacklist entry and the other to fix a cdb buffer overrun which has been there for a very long time" * 'for-4.17-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata: libata: Drop SanDisk SD7UB3Q*G1001 NOLPM quirk libata: zpodd: small read overflow in eject_tray()
2 parents a22e48c + 2cfce3a commit 476d9ff

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

drivers/ata/libata-core.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4557,9 +4557,6 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
45574557
{ "SAMSUNG MZMPC128HBFU-000MV", "CXM14M1Q", ATA_HORKAGE_NOLPM, },
45584558
{ "SAMSUNG SSD PM830 mSATA *", "CXM13D1Q", ATA_HORKAGE_NOLPM, },
45594559

4560-
/* Sandisk devices which are known to not handle LPM well */
4561-
{ "SanDisk SD7UB3Q*G1001", NULL, ATA_HORKAGE_NOLPM, },
4562-
45634560
/* devices that don't properly handle queued TRIM commands */
45644561
{ "Micron_M500IT_*", "MU01", ATA_HORKAGE_NO_NCQ_TRIM |
45654562
ATA_HORKAGE_ZERO_AFTER_TRIM, },

drivers/ata/libata-zpodd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct zpodd {
3535
static int eject_tray(struct ata_device *dev)
3636
{
3737
struct ata_taskfile tf;
38-
static const char cdb[] = { GPCMD_START_STOP_UNIT,
38+
static const char cdb[ATAPI_CDB_LEN] = { GPCMD_START_STOP_UNIT,
3939
0, 0, 0,
4040
0x02, /* LoEj */
4141
0, 0, 0, 0, 0, 0, 0,

0 commit comments

Comments
 (0)