lchan_alloc(): on alloc failure, report original type

In lchan_alloc(), there are several decisions to fall back to another type of
channel, followed by setting the channel type to the fall back type. So far,
this was set regardless of allocation success or failure.

If such fall back type is not available, do not modify the local type variable
and thus report an S_CHALLOC_ALLOC_FAIL on the type originally requested
(report is at the end of lchan_alloc()).

Change-Id: Ie3d4cb74f91db0b8c4f5e595a963099de339ad1a
1 file changed
tree: 6ea2733ba37c4feded75626deb32a81bc438d207
  1. contrib/
  2. debian/
  3. openbsc/
  4. .gitignore
  5. .gitreview