summaryrefslogtreecommitdiffstats
path: root/firmware/acenic
diff options
context:
space:
mode:
authorAnton Protopopov <a.s.protopopov@gmail.com>2016-02-17 11:19:56 -0500
committerDavid S. Miller <davem@davemloft.net>2016-02-18 14:59:35 -0500
commite60b13e4f56fc56cc0dea845ce0711773d514149 (patch)
treec0f9077bbd5b4eb462d8865d526459335b0c61ef /firmware/acenic
parent449f14f01f65f45f332e3360aa46b3d3571b2cba (diff)
downloadlinux-e60b13e4f56fc56cc0dea845ce0711773d514149.tar.gz
linux-e60b13e4f56fc56cc0dea845ce0711773d514149.tar.bz2
linux-e60b13e4f56fc56cc0dea845ce0711773d514149.zip
mISDN: prevent possible NULL pointer dereference
A return value of the bchannel_get_rxbuf() function is compared with the positive ENOMEM value instead of the negative -ENOMEM value to detect a memory allocation problem. Thus, after a possible memory allocation failure the bc->bch.rx_skb will be NULL which will lead to a NULL pointer dereference. Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'firmware/acenic')
0 files changed, 0 insertions, 0 deletions