kalash nainwal 98701d1b0f (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>
2007-05-08 11:15:08 -07:00
..
2007-05-08 11:14:59 -07:00
2007-05-08 11:14:59 -07:00
2007-05-08 11:15:01 -07:00
2007-05-08 11:14:59 -07:00
2007-05-08 11:14:59 -07:00
2007-05-08 11:14:57 -07:00
2006-10-04 06:51:26 -06:00
2007-05-08 11:14:59 -07:00
2006-12-07 08:39:25 -08:00
2007-05-08 11:15:08 -07:00
2007-05-08 11:15:01 -07:00
2007-05-07 12:12:58 -07:00
2006-12-07 08:39:25 -08:00
2007-05-08 11:14:57 -07:00
2007-05-08 11:15:01 -07:00
2006-10-01 00:39:19 -07:00
2006-03-23 07:38:11 -08:00
2007-03-29 14:26:42 +02:00
2007-05-08 11:15:01 -07:00
2007-05-08 11:15:04 -07:00