watchdog can be called before user_access() is instantiated. This patch checks that the function is available before calling it.

Comments

glennpratt’s picture

Status: Active » Needs review

I can confirm this bug.

Patch looks fine, though it maintains an existing code-style issue.

glennpratt’s picture

msonnabaum’s picture

Status: Needs review » Reviewed & tested by the community

Looks good.

glennpratt’s picture

Status: Reviewed & tested by the community » Closed (fixed)