Skip to content

Commit

Permalink
Version 8.2.1.3
Browse files Browse the repository at this point in the history
- Added a check for 0 length table line arguments.
  • Loading branch information
corwin committed Dec 14, 2022
1 parent 883a960 commit e2a5ebb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions kvdo.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%define spec_release 1
%define kmod_name kvdo
%define kmod_driver_version 8.2.1.2
%define kmod_driver_version 8.2.1.3
%define kmod_rpm_release %{spec_release}
%define kmod_kernel_version 3.10.0-693.el7

Expand Down Expand Up @@ -94,5 +94,5 @@ rm -rf $RPM_BUILD_ROOT
%{_usr}/src/%{kmod_name}-%{version}

%changelog
* Thu Nov 03 2022 - Red Hat VDO Team <[email protected]> - 8.2.1.2-1
* Thu Dec 08 2022 - Red Hat VDO Team <[email protected]> - 8.2.1.3-1
- See https://github.com/dm-vdo/kvdo.git
2 changes: 1 addition & 1 deletion vdo/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VDO_VERSION = 8.2.1.2
VDO_VERSION = 8.2.1.3

SOURCES = $(notdir $(wildcard $(src)/*.c))
OBJECTS = $(SOURCES:%.c=%.o)
Expand Down
7 changes: 7 additions & 0 deletions vdo/device-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,13 @@ int vdo_parse_device_config(int argc,
return VDO_BAD_CONFIGURATION;
}

if (argc == 0) {
handle_parse_error(config,
error_ptr,
"Incorrect number of arguments");
return VDO_BAD_CONFIGURATION;
}

result = UDS_ALLOCATE(1,
struct device_config,
"device_config",
Expand Down

0 comments on commit e2a5ebb

Please sign in to comment.