-/* $OpenBSD: amdisplay.c,v 1.7 2017/10/25 14:34:22 kettenis Exp $ */
+/* $OpenBSD: amdisplay.c,v 1.8 2018/09/19 08:12:39 claudio Exp $ */
/*
* Copyright (c) 2016 Ian Sutton <ians@openbsd.org>
*
return;
}
+ free(edid_buf, M_DEVBUF, EDID_LENGTH);
+
#ifdef LCD_DEBUG
edid_print(&sc->sc_edid);
#endif
/* configure DMA framebuffer */
if (amdisplay_setup_dma(sc)) {
printf("%s: couldn't allocate DMA framebuffer\n", DEVNAME(sc));
- free(edid_buf, M_DEVBUF, EDID_LENGTH);
amdisplay_detach(self, 0);
return;
}