diff mbox

ata: libata-core: initialize native_sectors in ata_hpa_resize()

Message ID 1358381351-27898-1-git-send-email-sque@chromium.org
State Not Applicable
Delegated to: David Miller
Headers show

Commit Message

Simon Que Jan. 17, 2013, 12:09 a.m. UTC
Signed-off-by: Simon Que <sque@chromium.org>
---
 drivers/ata/libata-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Sergei Shtylyov Jan. 17, 2013, 12:06 p.m. UTC | #1
Hello.

On 17-01-2013 4:09, Simon Que wrote:

    Why we need to initialize it? Thats should told be in your (missing) 
changelog.

> Signed-off-by: Simon Que <sque@chromium.org>

MBR, Sergei


--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index d2b18ea..b185db1 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -1324,7 +1324,7 @@  static int ata_hpa_resize(struct ata_device *dev)
 	int print_info = ehc->i.flags & ATA_EHI_PRINTINFO;
 	bool unlock_hpa = ata_ignore_hpa || dev->flags & ATA_DFLAG_UNLOCK_HPA;
 	u64 sectors = ata_id_n_sectors(dev->id);
-	u64 native_sectors;
+	u64 native_sectors = 0;
 	int rc;
 
 	/* do we need to do it? */