Change-Id: I6c3971a78581e90122ae6b9a95b6d4f99bde7a46
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
static int
read_bridge_info( struct pci_device_private * priv )
{
- uint8_t buf[0x40];
+ uint8_t buf[0x40] = {0, };
pciaddr_t bytes;
int err;
dev->func );
fd = open( name, O_RDONLY | O_CLOEXEC);
if ( fd != -1 ) {
+ int ret;
char * next;
pciaddr_t low_addr;
pciaddr_t high_addr;
pciaddr_t flags;
- bytes = read( fd, resource, 512 );
+ ret = read( fd, resource, 512 );
resource[511] = '\0';
close( fd );