With no extended partition 'hd->extended_partition' is zero. As a result
'has_extended' is set incorrectly.
The extended partition number is now defined explicitly so we can use it to
define 'has_extended'.
Fixes: c17203afa2d6 ("image-hd: set the position of extended partition")
Signed-off-by: Michael Olbrich m.olbrich@pengutronix.de
With no extended partition 'hd->extended_partition' is zero. As a result 'has_extended' is set incorrectly. The extended partition number is now defined explicitly so we can use it to define 'has_extended'.
Fixes: c17203afa2d6 ("image-hd: set the position of extended partition") Signed-off-by: Michael Olbrich m.olbrich@pengutronix.de