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
Makefile
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_ixp46x.c
ptp_kvm.c x86/pvclock: add setter for pvclock_pvti_cpu0_va 2019-01-31 08:13:47 +01:00
ptp_pch.c
ptp_private.h
ptp_sysfs.c