]> git.karo-electronics.de Git - linux-beck.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)
commita9f559c37b582c9eb12f82ac9bb77476cfda6309
tree62f129d82c3c434b8715cf807ab4173fe8e302d8
parented410ecf71a5924676ceb561f53a03119f27d925
net: ppp: access ppp->nextseq only if CONFIG_PPP_MULTILINK is defined

Commit d762d038497c9df51c19fcbe69b094b3bf8e5568 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