Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

afs: BUG to BUG_ON changes

Signed-off-by: Stoyan Gaydarov <stoyboyker@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Stoyan Gaydarov and committed by
Linus Torvalds
11ff5f6a e66dd190

+1 -2
+1 -2
fs/afs/netdevices.c
··· 20 20 struct net_device *dev; 21 21 int ret = -ENODEV; 22 22 23 - if (maclen != ETH_ALEN) 24 - BUG(); 23 + BUG_ON(maclen != ETH_ALEN); 25 24 26 25 rtnl_lock(); 27 26 dev = __dev_getfirstbyhwtype(&init_net, ARPHRD_ETHER);