Hi Rusty,
This patch seems fine to me, and I'll gladly put it in the merge queue.
The kdb shell has a 2 phase initialization, in order to support early
debugging (before the kernel allocators are ready as well as before
console init). In the later initialization phase, kmalloc() is
available. We could return an error up until the structure is allocated
by the kdb late init phase. It is also possible to avoid allocating the
structure at all if kdb is not configured and free it if you deactivate kdb.
If you are interested or think we should go down that path, let me know.
Thanks,
Jason.
--