]> git.baikalelectronics.ru Git - kernel.git/commit
dccp: fix auto-loading of dccp(_probe)
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Tue, 2 Feb 2010 20:16:56 +0000 (20:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Feb 2010 03:00:31 +0000 (19:00 -0800)
commit93c9d3d6831d8040f69f77143bd4165b420ca93a
treec63c4953a415bd3522c951f3b9a93ad3422412e4
parentc82470709e9689edb90344feb09d5a05bea7cb42
dccp: fix auto-loading of dccp(_probe)

This fixes commit (7ce48f578863d8a3ff7d957dc6028ab244a8bafd) ("dccp_probe:
Fix module load dependencies between dccp and dccp_probe", from 15 Jan).

It fixes the construction of the first argument of try_then_request_module(),
where only valid return codes from the first argument should be returned.

What we do now is assign the result of register_jprobe() to ret, without
the side effect of the comparison.

Acked-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/probe.c