depmod: fix return in sort_modules
commitf78bba3b31ca62bd06162e0551f7cdc406f2ba53
authorJon Masters <jcm@jonmasters.org>
Wed, 4 Feb 2009 07:25:47 +0000 (4 02:25 -0500)
committerJon Masters <jcm@jonmasters.org>
Wed, 4 Feb 2009 07:25:47 +0000 (4 02:25 -0500)
tree5d434a8be9944345afbef2f9de9458945ffb6785
parentdba7dd5a44ca00b230c5af55c5cc0f960d299a99
depmod: fix return in sort_modules

Newer kernels implement modules.order, which is used in sort_modules to
pre-sort the module list according to that ordering. But older kernels
don't have this ordering information, so we should ignore it. We had
a blind return without sending back the unsorted list head.

Signed-off-by: Jon Masters <jcm@jonmasters.org>
depmod.c