aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorWang Xiayang <[email protected]>2019-07-15 16:53:01 +0800
committerAlex Deucher <[email protected]>2019-07-16 13:09:09 -0500
commit3bd532692d93a9c72f4f11e38437b30c0e13007f (patch)
treefc5570beb6b25232812b4b663f30c76b036ec839 /net/lapb/lapb_out.c
parent5db7b0d29086b621e294d5c52bb3ff25283cff60 (diff)
drm/amdgpu: replace simple_strtol() by kstrtou32()
The simple_strtol() function is deprecated. kstrto[l,u32]() is the correct replacement as it can properly handle overflows. This patch replaces the deprecated simple_strtol() use introduced recently. As clk is of type uint32_t, we are safe to use kstrtou32(). It is also safe to return zero on string parsing error, similar to the case of returning zero if buf is empty in parse_clk(). Fixes: bb5a2bdf36a8 ("drm/amdgpu: support dpm level modification under virtualization v3") Signed-off-by: Wang Xiayang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions