commit | d154f8bda2e379a8a0e1c3712a9af6a9d97b7b97 | [log] [tgz] |
---|---|---|
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | Thu Apr 09 14:22:21 2015 +0200 |
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Fri Apr 10 08:44:15 2015 +0200 |
tree | aef161c0c8206235919c758da8583e6d380edcfd | |
parent | 8d192d7153498498ff6232209c900e67256b8036 [diff] |
msgb: Check the return value of msgb_alloc (Coverity) In some places, the return value of msgb_alloc/msgb_alloc_headroom is not checked before it is dereferenced. This commit adds NULL checks to return with -ENOMEM from the calling functions if the alloc function has failed. Fixes: Coverity CID 1249692, 1293376 Sponsored-by: On-Waves ehf