]> git.baikalelectronics.ru Git - kernel.git/commit
isdn/capi: prevent NULL pointer dereference on invalid CAPI command
authorTilman Schmidt <tilman@imap.cc>
Sat, 11 Oct 2014 11:46:30 +0000 (13:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Oct 2014 19:05:34 +0000 (15:05 -0400)
commit7bc6ab8ce2aba51f307bc4a6474f366861d24205
tree1f78a2f37ba05126f902cd5be66c37414a4c6683
parentfe07afd8b9996bf8ded8c1f5eb82d8560100c1f3
isdn/capi: prevent NULL pointer dereference on invalid CAPI command

An invalid CAPI 2.0 command/subcommand combination may retrieve a
NULL pointer from the cpars[] array which will later be dereferenced
by the parser routines.
Fix by adding NULL pointer checks in strategic places.

Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/capi/capiutil.c