• Al Viro's avatar
    [PATCH] nfsroot port= parameter fix [backport of 2.4 fix] · 8854eddb
    Al Viro authored
    Direct backport of 2.4 fix that didn't get propagated to 2.6; original
    comment follows:
    <quote>
       When I specify the NFS port for nfsroot (e.g.,
       nfsroot=<dir>,port=2049), the
       kernel uses the wrong port. In my case it tries to use 264 (0x108)
       instead
       of 2049 (0x801).
    
       This patch adds the missing htons().
    
       Eric
    </quote>
    
    Patch got applied in 2.4.21-pre6.  Author: Eric Lammerts (<eric@lammerts.org>,
    AFAICS).
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    8854eddb
nfsroot.c 14.3 KB