libfis: fix wrong shift for lba40 (thanks geoff and charles)

---------- Forwarded message ----------
From: Charles Forsyth <charles.forsyth@gmail.com>
Date: 13 September 2015 at 12:38
Subject: fis bug
To: erik quanstrom <quanstro@quanstro.net>


geoff spotted something similar in sdiahci.c, but it's in libfis as well:

c[Flba24] = lba >> 24;
c[Flba32] = lba >> 32;
c[Flba40] = lba >> 48;

>> 48??  should be >> 40, especially with drive sizes getting up there.
This commit is contained in:
cinap_lenrek 2015-09-13 13:51:00 +02:00
parent 33a4a56c1c
commit be3ba38c45

View file

@ -432,7 +432,7 @@ rwfis(Sfis *f, uchar *c, int rw, int nsect, uvlong lba)
c[Flba24] = lba >> 24;
c[Flba32] = lba >> 32;
c[Flba40] = lba >> 48;
c[Flba40] = lba >> 40;
c[Ffeat8] = 0;
c[Fsc] = nsect;