In some case, get_info() interface can be NULL, add this check to stop
from crash.
Signed-off-by: schspa
---
disk/part.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/disk/part.c b/disk/part.c
index a6a8f7052b..f9b9b89861 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -668,6 +668,13
在 2021-10-20星期三的 06:44 +0200,Heinrich Schuchardt写道:
>
>
> On 10/20/21 04:37, schspa wrote:
> > 在 2021-10-19星期二的 17:23 +0200,Heinrich Schuchardt写道:
> > > On 10/19/21 15:35, zhaohui.shi wrote:
> > > > From: schspa
> > > >
> > > > In
在 2021-10-19星期二的 17:23 +0200,Heinrich Schuchardt写道:
> On 10/19/21 15:35, zhaohui.shi wrote:
> > From: schspa
> >
> > In some case, get_info() interface can be NULL, add this check to
> > stop
> > from crash.
>
> Thank you for reviewing the partition driver
In some case, get_info() interface can be NULL, add this check to stop
from crash.
Signed-off-by: schspa
---
disk/part.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/disk/part.c b/disk/part.c
index a6a8f7052b..7af3240ec7 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -668,6 +668,13
part_get_info_by_name will return -1 on error, and >0 on success.
Signed-off-by: schspa
Cc: Igor Opaniuk
---
common/avb_verify.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/avb_verify.c b/common/avb_verify.c
index db10d0f21f..0520a71455 100644
--- a/com
5 matches
Mail list logo