Home Home > GIT Browse > SLE15
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-07-10 16:03:29 +0200
committerTakashi Iwai <tiwai@suse.de>2018-07-10 16:03:52 +0200
commitb5c772bac71d7c13e4e6195aab970cc0ed5dcc8f (patch)
tree9661839f3104b1bf7f4ba2d9b7bb5c51bed32193
parent60f79d0652d5363f5908e24ba40062581f73042d (diff)
libata: zpodd: small read overflow in eject_tray()
(bsc#1051510). suse-commit: e7d346add23bf2ace10b0fbd485a2ee10c31075a
-rw-r--r--drivers/ata/libata-zpodd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-zpodd.c b/drivers/ata/libata-zpodd.c
index db64f81a4840..0ad96c647541 100644
--- a/drivers/ata/libata-zpodd.c
+++ b/drivers/ata/libata-zpodd.c
@@ -34,7 +34,7 @@ struct zpodd {
static int eject_tray(struct ata_device *dev)
{
struct ata_taskfile tf;
- static const char cdb[] = { GPCMD_START_STOP_UNIT,
+ static const char cdb[ATAPI_CDB_LEN] = { GPCMD_START_STOP_UNIT,
0, 0, 0,
0x02, /* LoEj */
0, 0, 0, 0, 0, 0, 0,