diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-08-30 12:35:49 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-08-30 12:35:49 +0200 |
commit | 3fd8a8041b3775840c8f85b6338b61beb5057160 (patch) | |
tree | 2eb4fd3eae3168ae2837c4f98188fd25f62d5939 /fs/proc/root.c | |
parent | 1c9a341bbdc14051a4d8c74ea67269786c7d3736 (diff) | |
parent | 6d52825fd4e78b251f4844f6662a3bc4e31671c7 (diff) |
Merge tag 'asoc-v3.12-2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-next
ASoC: Updates for v3.12
A few more updates for v3.12, mostly small cleanups plus the addition of
the DT bindings for kirkwood and the new i.MX S/PDIF driver.
Diffstat (limited to 'fs/proc/root.c')
-rw-r--r-- | fs/proc/root.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/proc/root.c b/fs/proc/root.c index 229e366598da..e0a790da726d 100644 --- a/fs/proc/root.c +++ b/fs/proc/root.c @@ -205,7 +205,9 @@ static struct dentry *proc_root_lookup(struct inode * dir, struct dentry * dentr static int proc_root_readdir(struct file *file, struct dir_context *ctx) { if (ctx->pos < FIRST_PROCESS_ENTRY) { - proc_readdir(file, ctx); + int error = proc_readdir(file, ctx); + if (unlikely(error <= 0)) + return error; ctx->pos = FIRST_PROCESS_ENTRY; } |