]> git.baikalelectronics.ru Git - kernel.git/commit
text ematch: check for NULL pointer before destroying textsearch config
authorThomas Graf <tgraf@infradead.org>
Sun, 31 Oct 2010 16:37:38 +0000 (09:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 Oct 2010 16:37:38 +0000 (09:37 -0700)
commitf5d95523d4dfc684117d7c17e00c4339d5fb04be
tree2115be233a12ce363f669831f5a2a554bafc8565
parent1d721d8b261ea1eca9ee91d5f4799948204c2abd
text ematch: check for NULL pointer before destroying textsearch config

While validating the configuration em_ops is already set, thus the
individual destroy functions are called, but the ematch data has
not been allocated and associated with the ematch yet.

Signed-off-by: Thomas Graf <tgraf@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/em_text.c