OSDN Git Service

Correctly handle Sata() device paths PMPN sentinal value.
authorPeter Jones <pjones@redhat.com>
Thu, 4 Aug 2016 15:21:22 +0000 (11:21 -0400)
committerPeter Jones <pjones@redhat.com>
Tue, 9 Aug 2016 14:49:33 +0000 (10:49 -0400)
commitf2ca6a09fad1bda4a472d6951590545ded87bb12
tree98c6ab54653033f877fb04ec5cae6b51feac59eb
parent086eeb1794c1a8e058d0c9296f2f3bb2144a2824
Correctly handle Sata() device paths PMPN sentinal value.

We rarely wind up writing a full Sata() device path, so nobody noticed
that for the SATA PMPN (port multiplier number) sentinal value that
means "no port multiplier", i.e. the normal case, we were storing 0x8000
instead of 0xffff, and that's not correct.

Partially fixes github issue#47 .

Signed-off-by: Peter Jones <pjones@redhat.com>
src/dp-message.c
src/include/efivar/efivar-dp.h
src/linux.c