#include #include #include #include "promisc.h" #include "dev.h" short enter_promiscuous_mode(char *ifname) { short ifflags; if (!strncmp("any", ifname, strlen("any"))) return 0; ifflags = device_get_flags(ifname); device_set_flags(ifname, ifflags | IFF_PROMISC); return ifflags; } void leave_promiscuous_mode(char *ifname, short oldflags) { if (!strncmp("any", ifname, strlen("any"))) return; device_set_flags(ifname, oldflags); } .ch/cgit.cgi/linux/net-next.git' title='net-next.git Git repository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/sh')
e>
authorTrond Myklebust <trond.myklebust@primarydata.com>2016-07-14 18:34:12 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2016-07-19 16:22:47 -0400
commit56b38a1f7c781519eef09c1668a3c97ea911f86b (patch)
treeb9f1ebb18cf397a61fb38a6cdd6f43243078bc60 /Documentation
parent8487c479e2668dd1231e9c3c77a203d744aec081 (diff)
pNFS: Fix post-layoutget error handling in pnfs_update_layout()
The non-retry error path is currently broken and ends up releasing the reference to the layout twice. It also can end up clearing the NFS_LAYOUT_FIRST_LAYOUTGET flag twice, causing a race. In addition, the retry path will fail to decrement the plh_outstanding counter. Fixes: 183d9e7b112aa ("pnfs: rework LAYOUTGET retry handling") Cc: stable@vger.kernel.org # 4.7 Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Reviewed-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'Documentation')