/* * edma-pcm.h - eDMA PCM driver using dmaengine for AM3xxx, AM4xxx * * Copyright (C) 2014 Texas Instruments, Inc. * * Author: Peter Ujfalusi * * Based on: sound/soc/tegra/tegra_pcm.h * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. * * This program 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. */ #ifndef __EDMA_PCM_H__ #define __EDMA_PCM_H__ #if IS_ENABLED(CONFIG_SND_EDMA_SOC) int edma_pcm_platform_register(struct device *dev); #else static inline int edma_pcm_platform_register(struct device *dev) { return 0; } #endif /* CONFIG_SND_EDMA_SOC */ #endif /* __EDMA_PCM_H__ */ t();'> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2016-07-04 16:49:48 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2016-07-04 16:49:48 +0200
commitb99c2d913810e56682a538c9f2394d76fca808f8 (patch)
tree01c7236cc00eafd5a9f72481ef31c5e17d34783a
parenta99cde438de0c4c0cecc1d1af1a55a75b10bfdef (diff)
ovl: handle ATTR_KILL*
Before 4bacc9c9234c ("overlayfs: Make f_path...") file->f_path pointed to the underlying file, hence suid/sgid removal on write worked fine. After that patch file->f_path pointed to the overlay file, and the file mode bits weren't copied to overlay_inode->i_mode. So the suid/sgid removal simply stopped working. The fix is to copy the mode bits, but then ovl_setattr() needs to clear ATTR_MODE to avoid the BUG() in notify_change(). So do this first, then in the next patch copy the mode. Reported-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> Fixes: 4bacc9c9234c ("overlayfs: Make f_path always point to the overlay and f_inode to the underlay") Cc: <stable@vger.kernel.org>