diff options
author | Dan Carpenter | 2018-12-07 07:00:46 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2018-12-19 10:18:49 +0100 |
commit | b9d93594c7679c108ea41dec731df6f986786a19 (patch) | |
tree | d7bfce788c51b4ba953cd8bb67be68643cd7c1bd /drivers/misc | |
parent | genwqe: Fix size check (diff) | |
download | kernel-qcow2-linux-b9d93594c7679c108ea41dec731df6f986786a19.tar.gz kernel-qcow2-linux-b9d93594c7679c108ea41dec731df6f986786a19.tar.xz kernel-qcow2-linux-b9d93594c7679c108ea41dec731df6f986786a19.zip |
ptp: fix an IS_ERR() vs NULL check
We recently modified pps_register_source() to return error pointers
instead of NULL but it seems like there was a merge issue and part of
the commit was lost. Anyway, the ptp_clock_register() function needs to
be updated to check for IS_ERR() as well.
Fixes: 3b1ad360acad ("pps: using ERR_PTR instead of NULL while pps_register_source fails")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
0 files changed, 0 insertions, 0 deletions