Merged in jgraef-linetco/nuttx/bugfix/up_dma2dcreatelayer-return-value (pull request #142)
dma2d: fix an error in up_dma2dcreatelayer where an invalid pointer was returned when a certain underlying function failed.
This commit is contained in:
commit
18791db758
@ -2069,6 +2069,7 @@ FAR struct dma2d_layer_s *up_dma2dcreatelayer(fb_coord_t width,
|
||||
/* free the layer struture */
|
||||
|
||||
kmm_free(layer);
|
||||
layer = NULL;
|
||||
lcderr("ERROR: ENOMEM, Unable to allocate layer buffer\n");
|
||||
errno = ENOMEM;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user