The alloc_dmap code returns -ENOMEM when the allocation fails. That causes
the open_dmap call to return -ENOMEM which in turn causes DMAbuf_open
to return -ENOMEM which causes audio_openb to return -ENOMEM, which gets
back to userspace.
I don't see a problem.
[sound btw also supports a module option to keep the dmabuffers allocated
once and hang onto them]
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/