]> git.baikalelectronics.ru Git - kernel.git/commit
ax25: Add missing dev_put in ax25_setsockopt
authorRalf Baechle <ralf@linux-mips.org>
Mon, 28 Sep 2009 19:26:28 +0000 (12:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Sep 2009 19:26:28 +0000 (12:26 -0700)
commitc126571402cdccc1d4704090abe0d82226061323
treef2cdcf5bfd4b44387751c6339cf996e8ef455559
parentf8ebafd78544e63482a69c0fcf4563b1e6edd290
ax25: Add missing dev_put in ax25_setsockopt

ax25_setsockopt SO_BINDTODEVICE is missing a dev_put call in case of
success.  Re-order code to fix this bug.  While at it also reformat two
lines of code to comply with the Linux coding style.

Initial patch by Jarek Poplawski <jarkao2@gmail.com>.

Reported-by: Bernard Pidoux F6BVP <f6bvp@free.fr>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ax25/af_ax25.c