depmod: Don't fall back to uname on bad version
authorLaura Abbott <labbott@fedoraproject.org>
Mon, 28 Sep 2015 22:39:14 +0000 (15:39 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 30 Sep 2015 18:17:05 +0000 (15:17 -0300)
commitf3f62f5ec3b23823b2ce02e37bc707dc85c56461
tree9935557c289e628e14c497504fcdca000d9206de
parent50f43ce2f66f02cec44968cac5aa5119ce5cbb81
depmod: Don't fall back to uname on bad version

Currently, if a value that doesn't match a kernel version
("%u.%u") is passed in, depmod silently falls back to
using uname. Rather than try and work around the caller passing
bad data, just exit out instead.
tools/depmod.c