summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorkalash nainwal2007-05-08 09:28:31 +0200
committerLinus Torvalds2007-05-08 20:15:08 +0200
commit98701d1b0fe98b477b53df89114e6862547f8107 (patch)
tree4ccfe162116056c1af41563ef4ea6c93bb7067f3 /include
parentKprobes: print details of kretprobe on assertion failure (diff)
downloadkernel-qcow2-linux-98701d1b0fe98b477b53df89114e6862547f8107.tar.gz
kernel-qcow2-linux-98701d1b0fe98b477b53df89114e6862547f8107.tar.xz
kernel-qcow2-linux-98701d1b0fe98b477b53df89114e6862547f8107.zip
(re)register_binfmt returns with -EBUSY
When a binary format is unregistered and re-registered, register_binfmt fails with -EBUSY. The reason is that unregister_binfmt does not set fmt->next to NULL, and seeing (fmt->next != NULL), register_binfmt fails with -EBUSY. One can find his way around by explicitly setting fmt->next to NULL after unregistering, but that is kind of unclean (one should better be using only the interfaces, and not the interal members, isn't it?) Attached one-liner can fix it. Signed-off-by: Kalash Nainwal <kalash.nainwal@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions