Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92051b28 authored by Figo.zhang's avatar Figo.zhang Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (11953): videobuf-dma-sg: return -ENOMEM if vmalloc fails



it is better return -ENOMEM than -EIO

Signed-off-by: default avatarFigo.zhang <figo1802@gmail.com>
Signed-off-by: default avatarDouglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 8bb09db3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -252,7 +252,7 @@ int videobuf_dma_map(struct videobuf_queue* q, struct videobuf_dmabuf *dma)
			vfree(dma->sglist);
			dma->sglist = NULL;
			dma->sglen = 0;
			return -EIO;
			return -ENOMEM;
		}
	}
	return 0;