Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:Update
mdadm.17611
0010-policy.c-prevent-NULL-pointer-referencing....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0010-policy.c-prevent-NULL-pointer-referencing.patch of Package mdadm.17611
From 467e6a1b4ece8e552ee638dab7f44a4d235ece1a Mon Sep 17 00:00:00 2001 From: Gioh Kim <gi-oh.kim@cloud.ionos.com> Date: Fri, 7 Dec 2018 12:04:44 +0100 Subject: [PATCH] policy.c: prevent NULL pointer referencing Git-commit: 467e6a1b4ece8e552ee638dab7f44a4d235ece1a Patch-mainline: mdadm-4.1 References: bsc#1106078 paths could be NULL and paths[0] should be followed by NULL pointer checking. Reviewed-by: NeilBrown <neilb@suse.com> Signed-off-by: Gioh Kim <gi-oh.kim@cloud.ionos.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com> --- policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policy.c b/policy.c index fa67d55..e3a0671 100644 --- a/policy.c +++ b/policy.c @@ -383,7 +383,7 @@ struct dev_policy *path_policy(char **paths, char *type) /* Now add any metadata-specific internal knowledge * about this path */ - for (i=0; paths[0] && superlist[i]; i++) + for (i=0; paths && paths[0] && superlist[i]; i++) if (superlist[i]->get_disk_controller_domain) { const char *d = superlist[i]->get_disk_controller_domain( -- 2.25.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor