Commit 7f42d3b8a72ab585f3166a269276c8cca12088af

Authored by Mike Miller (OS Dev)
Committed by Linus Torvalds
1 parent 2363cc0264

[PATCH] cciss: add init of drv->cylinders back to cciss_geometry_inquiry

This patch adds initialization of drv->cylinders back into the failing case in
cciss_geometry_inquiry. I inadvertently removed it in one my 2TB updates.

Signed-off-by: Mike Miller <mike.miller@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/block/cciss.c
... ... @@ -1915,6 +1915,7 @@
1915 1915 "does not support reading geometry\n");
1916 1916 drv->heads = 255;
1917 1917 drv->sectors = 32; // Sectors per track
  1918 + drv->cylinders = total_size + 1;
1918 1919 drv->raid_level = RAID_UNKNOWN;
1919 1920 } else {
1920 1921 drv->heads = inq_buff->data_byte[6];