/* * Copyright (C) 2015 Tobias Klauser * * This file is part of llmnrd. * * llmnrd is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 2 of the License. * * llmnrd is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with llmnrd. If not, see . */ #ifndef ERR_H #define ERR_H static inline void *ERR_PTR(long err) { return (void *)err; } static inline long PTR_ERR(const void *ptr) { return (long)ptr; } #endif /* ERR_H */ /linux/net-next.git/'>net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
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>
-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')