diff options
author | Alexander A. Klimov <grandmaster@al2klimov.de> | 2020-07-13 21:16:38 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2020-07-28 02:07:35 +0200 |
commit | 81bd45fc36e3d01db66c17fa5ed5f39a61e67477 (patch) | |
tree | f926ba4a5c3f213acba354246ffc03d95a10e856 /drivers/power/supply/bq27xxx_battery_hdq.c | |
parent | a7f79f99541eff4e6bcae0014eb08d3019337565 (diff) | |
download | linux-81bd45fc36e3d01db66c17fa5ed5f39a61e67477.tar.bz2 |
power: supply: bq2xxxx: Replace HTTP links with HTTPS ones
Rationale:
Reduces attack surface on kernel devs opening the links for MITM
as HTTPS traffic is much harder to manipulate.
Deterministic algorithm:
For each file:
If not .svg:
For each line:
If doesn't contain `\bxmlns\b`:
For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
If neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`:
If both the HTTP and HTTPS versions
return 200 OK and serve the same content:
Replace HTTP with HTTPS.
Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
[also update recently added ti.com http links]
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply/bq27xxx_battery_hdq.c')
-rw-r--r-- | drivers/power/supply/bq27xxx_battery_hdq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/bq27xxx_battery_hdq.c b/drivers/power/supply/bq27xxx_battery_hdq.c index 9aff896c9802..29771967df2e 100644 --- a/drivers/power/supply/bq27xxx_battery_hdq.c +++ b/drivers/power/supply/bq27xxx_battery_hdq.c @@ -1,7 +1,7 @@ /* * BQ27xxx battery monitor HDQ/1-wire driver * - * Copyright (C) 2007-2017 Texas Instruments Incorporated - http://www.ti.com/ + * Copyright (C) 2007-2017 Texas Instruments Incorporated - https://www.ti.com/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as |