]> git.baikalelectronics.ru Git - kernel.git/commit
net: ppp: access ppp->nextseq only if CONFIG_PPP_MULTILINK is defined
authorChristoph Schulz <develop@kristov.de>
Wed, 16 Jul 2014 21:41:26 +0000 (23:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jul 2014 21:48:33 +0000 (14:48 -0700)
commitb9a2cf30f2b15e332938f44e3fa21b154a31d7ed
tree62f129d82c3c434b8715cf807ab4173fe8e302d8
parente6ffbf995193a42a24fd7a7b89b86a44b6342d6b
net: ppp: access ppp->nextseq only if CONFIG_PPP_MULTILINK is defined

Commit 32441499857ae900b9f201d84c6fe37a6b3db3bf resets the counter holding the
next sequence number for multilink PPP fragments to zero whenever the
SC_MULTILINK flag is set. However, this counter only exists if
CONFIG_PPP_MULTILINK is defined. Consequently, the new code has to be enclosed
within #ifdef CONFIG_PPP_MULTILINK ... #endif.

Signed-off-by: Christoph Schulz <develop@kristov.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/ppp_generic.c