linux-stable/drivers/ptp
YueHaibing c7d8d629fd ptp: Fix pass zero to ERR_PTR() in ptp_clock_register
[ Upstream commit aea0a897af ]

Fix smatch warning:

drivers/ptp/ptp_clock.c:298 ptp_clock_register() warn:
 passing zero to 'ERR_PTR'

'err' should be set while device_create_with_groups and
pps_register_source fails

Fixes: 85a66e5501 ("ptp: create "pins" together with the rest of attributes")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-02-12 19:45:59 +01:00
..
Kconfig ptp: Add a ptp clock driver for Broadcom DTE 2017-06-15 12:07:15 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ptp_chardev.c ptp: check gettime64 return code in PTP_SYS_OFFSET ioctl 2019-02-12 19:45:58 +01:00
ptp_clock.c ptp: Fix pass zero to ERR_PTR() in ptp_clock_register 2019-02-12 19:45:59 +01:00
ptp_dte.c ptp: make ptp_clock_info const 2017-08-22 11:04:51 -07:00
ptp_ixp46x.c ptp: make ptp_clock_info const 2017-08-22 11:04:51 -07:00
ptp_kvm.c x86/pvclock: add setter for pvclock_pvti_cpu0_va 2019-01-31 08:13:47 +01:00
ptp_pch.c ptp: make ptp_clock_info const 2017-08-22 11:04:51 -07:00
ptp_private.h ptp: introduce ptp auxiliary worker 2017-08-01 15:22:55 -07:00
ptp_sysfs.c ptp: create "pins" together with the rest of attributes 2017-02-17 11:03:06 -05:00