summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-imx/NFS-Fix-nfsroot-support.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-imx/NFS-Fix-nfsroot-support.patch')
-rw-r--r--recipes-kernel/linux/linux-imx/NFS-Fix-nfsroot-support.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-imx/NFS-Fix-nfsroot-support.patch b/recipes-kernel/linux/linux-imx/NFS-Fix-nfsroot-support.patch
new file mode 100644
index 00000000..870f0c5f
--- /dev/null
+++ b/recipes-kernel/linux/linux-imx/NFS-Fix-nfsroot-support.patch
@@ -0,0 +1,31 @@
1From 4a6353dad68074bb7ae08817cd7beb5cd13f2359 Mon Sep 17 00:00:00 2001
2From: Otavio Salvador <otavio@ossystems.com.br>
3Date: Mon, 18 Jun 2012 12:02:56 -0300
4Subject: [PATCH] NFS: Fix nfsroot support
5
6The NFS support to use alternative ports breaks building of regular
7NFS root support as the API has been change in an incompatible way.
8
9Upstream-Status: Inappropriate [embedded specific]
10
11Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
12---
13 fs/nfs/nfsroot.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/fs/nfs/nfsroot.c b/fs/nfs/nfsroot.c
17index df101d9..e1578e1 100644
18--- a/fs/nfs/nfsroot.c
19+++ b/fs/nfs/nfsroot.c
20@@ -506,7 +506,7 @@ static int __init root_nfs_get_handle(void)
21 if (!request.fh)
22 goto out;
23 set_sockaddr(&sin, servaddr, htons(mount_port));
24- status = nfs_mount(&request);
25+ status = nfs_mount(&request, NFS_MNT_PROGRAM);
26 if (status < 0)
27 printk(KERN_ERR "Root-NFS: Server returned error %d "
28 "while mounting %s\n", status, nfs_export_path);
29--
301.7.10
31