Messages in this thread | | | Date | Sun, 8 Dec 2013 06:01:00 -0800 | From | Greg KH <> | Subject | Re: [PATCH] xen/debugfs: Check debugfs initialization before using it |
| |
On Sun, Dec 08, 2013 at 07:31:02PM +0800, ethan.zhao wrote: > Should check debugfs initialization with debugfs_initialized() before using it, > Because if it isn't initialized, the return value of fake debugfs_create_dir() etc > functions would be ERR_PTR(-ENODEV), checking with NULL will not work.
So? It should "just work" without this check, right? What happens if your patch isn't applied and debugfs isn't enabled?
greg k-h
> Signed-off-by: ethan.zhao <ethan.kernel@gmail.com>
Please put your "real" name here, not one with a '.' in it.
thanks,
greg k-h
| |