Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=dd1a458412c358f8b4550d7e7df88982c88ce408 Commit: dd1a458412c358f8b4550d7e7df88982c88ce408 Parent: 8999e04f3b7930f0c6f091a541237de51d8dd372 Author: Latchesar Ionkov <[EMAIL PROTECTED]> AuthorDate: Tue Nov 6 08:02:53 2007 -0600 Committer: Eric Van Hensbergen <[EMAIL PROTECTED]> CommitDate: Tue Nov 6 08:02:53 2007 -0600
9p: return NULL when trans not found v9fs_match_trans function returns arbitrary transport module instead of NULL when the requested transport is not registered. This patch modifies the function to return NULL in that case. Signed-off-by: Latchesar Ionkov <[EMAIL PROTECTED]> Acked-by: Eric Van Hensbergen <[EMAIL PROTECTED]> --- net/9p/mod.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/9p/mod.c b/net/9p/mod.c index 41d70f4..8f9763a 100644 --- a/net/9p/mod.c +++ b/net/9p/mod.c @@ -76,9 +76,9 @@ struct p9_trans_module *v9fs_match_trans(const substring_t *name) list_for_each(p, &v9fs_trans_list) { t = list_entry(p, struct p9_trans_module, list); if (strncmp(t->name, name->from, name->to-name->from) == 0) - break; + return t; } - return t; + return NULL; } EXPORT_SYMBOL(v9fs_match_trans); - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html