dev: fbcon: Fix the logo header implementation
Remove the reserved bytes which were used to align the structure to
block size and free the fbimage structure after use.
Change-Id: I00b808a26dacbe649de9f113926cdfbe768b4eac
diff --git a/dev/fbcon/fbcon.c b/dev/fbcon/fbcon.c
index a593a62..395e338 100644
--- a/dev/fbcon/fbcon.c
+++ b/dev/fbcon/fbcon.c
@@ -233,6 +233,8 @@
}
fbcon_putImage(fbimg, flag);
+ if (fbimg)
+ free(fbimg);
}
void fbcon_putImage(struct fbimage *fbimg, bool flag)
diff --git a/include/dev/fbcon.h b/include/dev/fbcon.h
index a817675..2587277 100644
--- a/include/dev/fbcon.h
+++ b/include/dev/fbcon.h
@@ -2,7 +2,7 @@
* Copyright (c) 2008, Google Inc.
* All rights reserved.
*
- * Copyright (c) 2009-2013, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2009-2014, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -42,7 +42,6 @@
uint32_t width; // logo's width, little endian
uint32_t height; // logo's height, little endian
uint32_t offset;
- unsigned char reserved[512-20];
};
struct fbimage {