hnbap: Don't enqueue a NULL msgb for transmit
This commit is contained in:
parent
9e270b4834
commit
7b54e32c63
|
@ -16,6 +16,9 @@
|
|||
|
||||
static int hnbgw_hnbap_tx(struct hnb_context *ctx, struct msgb *msg)
|
||||
{
|
||||
if (!msg)
|
||||
return -EINVAL;
|
||||
|
||||
msgb_ppid(msg) = IUH_PPI_HNBAP;
|
||||
return osmo_wqueue_enqueue(&ctx->wqueue, msg);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue