libkmod-module: Remove key+value vermagic from .modinfo section
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Wed, 21 Nov 2012 20:34:50 +0000 (18:34 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Wed, 21 Nov 2012 22:22:56 +0000 (20:22 -0200)
commitd196b8d99f0a46d5e96678daabe74fda94875886
treeb2f66ca1ed3d558188a85d2a227f3c987cce2d10
parent02c64df3c2b33880b18d3f4aba9fa8e48e5ca904
libkmod-module: Remove key+value vermagic from .modinfo section

When told to force load a module, we were removing only the value of
vermagic instead of the complete entry.

Philippe De Swert (philippe.deswert@jollamobile.com) sent a patch that
was additionally mangling also the last two chars of the key
("vermagic="). Instead of creating an invalid entry in .modinfo section
like this, this patch removes the complete entry, key + value, by
zeroing the entire string.

Much thanks to Philippe who found the issue and pointed to the fix.
libkmod/libkmod-elf.c